---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-emergency
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-emergency
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-emergency
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-emergency
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-emergency
          image: 192.168.186.11:8033/cmii/cmii-uav-emergency:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-emergency
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-emergency
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-emergency
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-emergency
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-emergency
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-sync
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-sync
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-sync
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-sync
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-sync
          image: 192.168.186.11:8033/cmii/cmii-uav-sync:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-sync
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-sync
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-sync
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-sync
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-sync
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-grid-engine
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-engine
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-grid-engine
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-grid-engine
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-grid-engine
          image: 192.168.186.11:8033/cmii/cmii-uav-grid-engine:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-grid-engine
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-grid-engine
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-grid-engine
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-engine
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-grid-engine
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-grid-manage
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-manage
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-grid-manage
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-grid-manage
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-grid-manage
          image: 192.168.186.11:8033/cmii/cmii-uav-grid-manage:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-grid-manage
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-grid-manage
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-grid-manage
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-manage
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-grid-manage
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-process
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-process
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-process
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-process
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-process
          image: 192.168.186.11:8033/cmii/cmii-uav-process:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-process
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-process
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-process
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-process
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-process
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-autowaypoint
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-autowaypoint
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-autowaypoint
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-autowaypoint
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-autowaypoint
          image: 192.168.186.11:8033/cmii/cmii-uav-autowaypoint:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-autowaypoint
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-autowaypoint
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-autowaypoint
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-autowaypoint
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-autowaypoint
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-material-warehouse
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-material-warehouse
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-material-warehouse
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-material-warehouse
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-material-warehouse
          image: 192.168.186.11:8033/cmii/cmii-uav-material-warehouse:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-material-warehouse
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-material-warehouse
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-material-warehouse
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-material-warehouse
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-material-warehouse
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-device
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-device
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-device
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-device
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-device
          image: 192.168.186.11:8033/cmii/cmii-uav-device:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-device
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-device
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-device
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-device
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-device
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-cms
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-cms
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-cms
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-cms
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-cms
          image: 192.168.186.11:8033/cmii/cmii-uav-cms:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-cms
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-cms
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-cms
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-cms
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-cms
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-cloud-live
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-cloud-live
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-cloud-live
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-cloud-live
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-cloud-live
          image: 192.168.186.11:8033/cmii/cmii-uav-cloud-live:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-cloud-live
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-cloud-live
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-cloud-live
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-cloud-live
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-cloud-live
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-sense-adapter
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-sense-adapter
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-sense-adapter
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-sense-adapter
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-sense-adapter
          image: 192.168.186.11:8033/cmii/cmii-uav-sense-adapter:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-sense-adapter
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-sense-adapter
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-sense-adapter
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-sense-adapter
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-sense-adapter
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-suav-supervision
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-suav-supervision
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-suav-supervision
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-suav-supervision
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-suav-supervision
          image: 192.168.186.11:8033/cmii/cmii-suav-supervision:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-suav-supervision
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-suav-supervision
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-suav-supervision
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-suav-supervision
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-suav-supervision
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-airspace
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-airspace
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-airspace
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-airspace
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-airspace
          image: 192.168.186.11:8033/cmii/cmii-uav-airspace:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-airspace
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-airspace
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-airspace
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-airspace
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-airspace
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-developer
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-developer
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-developer
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-developer
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-developer
          image: 192.168.186.11:8033/cmii/cmii-uav-developer:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-developer
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-developer
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-developer
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-developer
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-developer
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-bridge
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-bridge
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-bridge
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-bridge
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-bridge
          image: 192.168.186.11:8033/cmii/cmii-uav-bridge:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-bridge
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-bridge
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-bridge
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-bridge
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-bridge
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-kpi-monitor
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-kpi-monitor
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-kpi-monitor
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-kpi-monitor
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-kpi-monitor
          image: 192.168.186.11:8033/cmii/cmii-uav-kpi-monitor:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-kpi-monitor
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-kpi-monitor
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-kpi-monitor
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-kpi-monitor
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-kpi-monitor
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-admin-user
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-user
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-admin-user
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-admin-user
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-admin-user
          image: 192.168.186.11:8033/cmii/cmii-admin-user:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-admin-user
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-admin-user
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-admin-user
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-user
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-admin-user
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-gis-server
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-gis-server
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-gis-server
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-gis-server
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-gis-server
          image: 192.168.186.11:8033/cmii/cmii-uav-gis-server:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-gis-server
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-gis-server
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-gis-server
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-gis-server
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-gis-server
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-open-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-open-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-open-gateway
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-open-gateway
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-open-gateway
          image: 192.168.186.11:8033/cmii/cmii-open-gateway:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-open-gateway
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-open-gateway
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-open-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-open-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-open-gateway
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-waypoint
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-waypoint
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-waypoint
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-waypoint
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-waypoint
          image: 192.168.186.11:8033/cmii/cmii-uav-waypoint:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-waypoint
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-waypoint
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-waypoint
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-waypoint
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-waypoint
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-gateway
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-gateway
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-gateway
          image: 192.168.186.11:8033/cmii/cmii-uav-gateway:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-gateway
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-gateway
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-gateway
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uas-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uas-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uas-gateway
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uas-gateway
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uas-gateway
          image: 192.168.186.11:8033/cmii/cmii-uas-gateway:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uas-gateway
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uas-gateway
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uas-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uas-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uas-gateway
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-logger
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-logger
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-logger
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-logger
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-logger
          image: 192.168.186.11:8033/cmii/cmii-uav-logger:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-logger
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-logger
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-logger
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-logger
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-logger
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-alarm
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-alarm
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-alarm
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-alarm
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-alarm
          image: 192.168.186.11:8033/cmii/cmii-uav-alarm:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-alarm
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-alarm
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-alarm
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-alarm
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-alarm
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uavms-security-center
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uavms-security-center
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uavms-security-center
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uavms-security-center
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uavms-security-center
          image: 192.168.186.11:8033/cmii/cmii-uavms-security-center:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uavms-security-center
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uavms-security-center
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uavms-security-center
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uavms-security-center
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uavms-security-center
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-user
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-user
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-user
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-user
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-user
          image: 192.168.186.11:8033/cmii/cmii-uav-user:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-user
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-user
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-user
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-user
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-user
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-oauth
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-oauth
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-oauth
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-oauth
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-oauth
          image: 192.168.186.11:8033/cmii/cmii-uav-oauth:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-oauth
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-oauth
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-oauth
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-oauth
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-oauth
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-mission
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-mission
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-mission
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-mission
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-mission
          image: 192.168.186.11:8033/cmii/cmii-uav-mission:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-mission
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-mission
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-mission
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-mission
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-mission
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-fwdd
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-fwdd
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-fwdd
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-fwdd
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-fwdd
          image: 192.168.186.11:8033/cmii/cmii-uav-fwdd:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-fwdd
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-fwdd
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-fwdd
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-fwdd
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-fwdd
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-grid-datasource
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-datasource
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-grid-datasource
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-grid-datasource
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-grid-datasource
          image: 192.168.186.11:8033/cmii/cmii-uav-grid-datasource:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-grid-datasource
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-grid-datasource
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-grid-datasource
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-grid-datasource
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-grid-datasource
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-admin-data
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-data
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-admin-data
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-admin-data
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-admin-data
          image: 192.168.186.11:8033/cmii/cmii-admin-data:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-admin-data
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-admin-data
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-admin-data
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-data
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-admin-data
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-admin-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-admin-gateway
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-admin-gateway
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-admin-gateway
          image: 192.168.186.11:8033/cmii/cmii-admin-gateway:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-admin-gateway
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-admin-gateway
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-admin-gateway
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-admin-gateway
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-admin-gateway
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-clusters
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-clusters
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-clusters
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-clusters
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-clusters
          image: 192.168.186.11:8033/cmii/cmii-uav-clusters:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-clusters
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-clusters
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-clusters
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-clusters
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-clusters
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-surveillance
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-surveillance
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-surveillance
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-surveillance
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-surveillance
          image: 192.168.186.11:8033/cmii/cmii-uav-surveillance:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-surveillance
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-surveillance
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-surveillance
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-surveillance
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-surveillance
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-mqtthandler
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-mqtthandler
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-mqtthandler
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-mqtthandler
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-mqtthandler
          image: 192.168.186.11:8033/cmii/cmii-uav-mqtthandler:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-mqtthandler
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-mqtthandler
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-mqtthandler
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-mqtthandler
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-mqtthandler
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uas-lifecycle
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uas-lifecycle
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uas-lifecycle
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uas-lifecycle
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uas-lifecycle
          image: 192.168.186.11:8033/cmii/cmii-uas-lifecycle:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uas-lifecycle
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uas-lifecycle
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uas-lifecycle
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uas-lifecycle
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uas-lifecycle
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-iot-dispatcher
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-iot-dispatcher
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-iot-dispatcher
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-iot-dispatcher
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-iot-dispatcher
          image: 192.168.186.11:8033/cmii/cmii-uav-iot-dispatcher:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-iot-dispatcher
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-iot-dispatcher
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-iot-dispatcher
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-iot-dispatcher
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-iot-dispatcher
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-industrial-portfolio
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-industrial-portfolio
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-industrial-portfolio
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-industrial-portfolio
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-industrial-portfolio
          image: 192.168.186.11:8033/cmii/cmii-uav-industrial-portfolio:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-industrial-portfolio
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-industrial-portfolio
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-industrial-portfolio
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-industrial-portfolio
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-industrial-portfolio
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-notice
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-notice
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-notice
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-notice
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-notice
          image: 192.168.186.11:8033/cmii/cmii-uav-notice:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-notice
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-notice
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-notice
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-notice
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-notice
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-app-release
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-app-release
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-app-release
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-app-release
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-app-release
          image: 192.168.186.11:8033/cmii/cmii-app-release:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-app-release
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-app-release
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-app-release
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-app-release
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-app-release
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-threedsimulation
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-threedsimulation
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-threedsimulation
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-threedsimulation
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-threedsimulation
          image: 192.168.186.11:8033/cmii/cmii-uav-threedsimulation:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-threedsimulation
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-threedsimulation
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-threedsimulation
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-threedsimulation
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-threedsimulation
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-brain
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-brain
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-brain
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-brain
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-brain
          image: 192.168.186.11:8033/cmii/cmii-uav-brain:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-brain
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-brain
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-brain
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-brain
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-brain
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-integration
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-integration
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-integration
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-integration
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-integration
          image: 192.168.186.11:8033/cmii/cmii-uav-integration:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-integration
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-integration
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-integration
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-integration
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-integration
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-tower
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-tower
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-tower
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-tower
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-tower
          image: 192.168.186.11:8033/cmii/cmii-uav-tower:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-tower
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-tower
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-tower
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-tower
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-tower
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-multilink
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-multilink
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-multilink
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-multilink
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-multilink
          image: 192.168.186.11:8033/cmii/cmii-uav-multilink:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-multilink
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-multilink
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-multilink
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-multilink
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-multilink
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-data-post-process
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-data-post-process
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-data-post-process
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-data-post-process
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-data-post-process
          image: 192.168.186.11:8033/cmii/cmii-uav-data-post-process:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-data-post-process
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-data-post-process
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-data-post-process
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-data-post-process
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-data-post-process
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cmii-uav-depotautoreturn
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-depotautoreturn
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  replicas: 0
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  selector:
    matchLabels:
      cmii.type: backend
      cmii.app: cmii-uav-depotautoreturn
  template:
    metadata:
      labels:
        cmii.type: backend
        cmii.app: cmii-uav-depotautoreturn
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: uavcloud.env
                    operator: In
                    values:
                      - ynydapp
      imagePullSecrets:
        - name: harborsecret
      containers:
        - name: cmii-uav-depotautoreturn
          image: 192.168.186.11:8033/cmii/cmii-uav-depotautoreturn:6.1.1
          imagePullPolicy: Always
          env:
            - name: K8S_NAMESPACE
              value: ynydapp
            - name: APPLICATION_NAME
              value: cmii-uav-depotautoreturn
            - name: CUST_JAVA_OPTS
              value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
            - name: NACOS_REGISTRY
              value: "helm-nacos:8848"
            - name: NACOS_DISCOVERY_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NACOS_DISCOVERY_PORT
              value: "8080"
            - name: BIZ_CONFIG_GROUP
              value: 6.1.0
            - name: SYS_CONFIG_GROUP
              value: 6.1.0
            - name: IMAGE_VERSION
              value: 6.1.0
            - name: NACOS_USERNAME
              value: "developer"
            - name: NACOS_PASSWORD
              value: "Deve@9128201"
          ports:
            - name: pod-port
              containerPort: 8080
              protocol: TCP
          resources:
             limits:
               memory: 2Gi
               cpu: "2"
             requests:
               memory: 200Mi
               cpu: 200m
          livenessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 5
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            httpGet:
              path: /cmii/health
              port: pod-port
              scheme: HTTP
            initialDelaySeconds: 60
            timeoutSeconds: 3
            periodSeconds: 20
            successThreshold: 1
            failureThreshold: 5
          volumeMounts:
            - name: nfs-backend-log-volume
              mountPath: /cmii/logs
              readOnly: false
              subPath: ynydapp/cmii-uav-depotautoreturn
      volumes:
        - name: nfs-backend-log-volume
          persistentVolumeClaim:
            claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: cmii-uav-depotautoreturn
  namespace: ynydapp
  labels:
    cmii.type: backend
    cmii.app: cmii-uav-depotautoreturn
    octopus/control: backend-app-1.0.0
    app.kubernetes.io/managed-by: octopus
    app.kubernetes.io/app-version: 6.1.0
spec:
  type: ClusterIP
  selector:
    cmii.type: backend
    cmii.app: cmii-uav-depotautoreturn
  ports:
    - name: backend-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
