Skip to content

2.10安装solution-geoai

pvc

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: solution-geoai-logs
  namespace: default
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 100Mi
  storageClassName: cdtest-storage-class

service

kind: Service
apiVersion: v1
metadata:
  name: solution-geoai-service
  namespace: default
  labels:
    name: solution-geoai-service
spec:
  ports:
    - protocol: TCP
      port: 8085
      targetPort: 8085
      nodePort: 30615
  selector:
    app: online-solution-geoai
  type: NodePort

deployment

kind: Deployment
apiVersion: apps/v1
metadata:
  name: online-solution-geoai
  namespace: default
  labels:
    app: online-solution-geoai
spec:
  replicas: 1
  selector:
    matchLabels:
      app: online-solution-geoai
  template:
    metadata:
      labels:
        app: online-solution-geoai
    spec:
      volumes:
        - name: online-solution-geoai-volume
          persistentVolumeClaim:
            claimName: solution-geoai-logs
      containers:
        - name: online-solution-geoai
          image: >-
            registry.cn-chengdu.aliyuncs.com/liuchenyun/online-solution-geoai:latest
          ports:
            - containerPort: 8085
              protocol: TCP
          env:
            - name: PORTAL_ADMINISTRATORS_USERID
              value: '944959'
            - name: DATABASE_URL
              value: 192.168.31.157
            - name: DATABASE_PORT
              value: '31185'
            - name: DATABASE_NAME
              value: geoai
            - name: DATABASE_USERNAME
              value: root
            - name: DATABASE_PASSWORD
              value: '123456'
            - name: SOLUTION_GEOAI_LOGGING_LEVEL
              value: info
            - name: TZ
              value: Asia/Shanghai
            - name: TOMCAT_MEMCACHE_NODES
              value: n1:memcached-service:11211
            - name: SWAGGER_ENABLED
              value: 'true'
            - name: WECOM_ROBOT_SALE_ENABLE
              value: 'false'
            - name: WECOM_ROBOT_USER_ENABLE
              value: 'false'
            - name: GEOAI_ANA_COEFFICIENT
              value: '2'
            - name: THREE-D-SENCE_WECHAT_URL
              value: >-
                https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=c7834899-7cf7-4a12-bd56-140e7df0e99f
            - name: GEOAI_DATA_ANALYSIS_URL
              value: >-
                https://cdtest.supermapol.com/proxy/mlvehiqq/iserver/services/data_20230217ana_data_8px5pio3/rest/data/featureResults.json
            - name: GEOAI_BUILDING_ANALYSIS_URL
              value: >-
                https://cdtest.supermapol.com/proxy/hdyv20t6/iserver/services/data_chengdu_smwu_xqzla64f/rest/data/featureResults.json
            - name: GEOAI_AIRPORT_ANALYSIS_URL
              value: >-
                https://cdtest.supermapol.com/proxy/z1en1ejg/iserver/services/data_airport_smwu_pp1ipg59/rest/data/featureResults.json
          resources:
            requests:
              cpu: 10m
              memory: 600Mi
          volumeMounts:
            - name: online-solution-geoai-volume
              mountPath: /opt/online/logs
          imagePullPolicy: Always
      restartPolicy: Always
      imagePullSecrets:
        - name: dockercfg-liuchenyun