kind: Deployment apiVersion: apps/v1 metadata: name: cmii-uav-platform-lite-pilot2 namespace: 命名空间 labels: app.kubernetes.io/app-version: 6.2.0 cmii.app: cmii-uav-platform-lite-pilot2 cmii.type: frontend octopus.lite: frontend-app-wdd spec: replicas: 1 selector: matchLabels: cmii.app: cmii-uav-platform-lite-pilot2 cmii.type: frontend template: metadata: labels: cmii.app: cmii-uav-platform-lite-pilot2 cmii.type: frontend spec: volumes: - name: nginx-conf configMap: name: nginx-cm items: - key: nginx.conf path: nginx.conf defaultMode: 420 - name: tenant-prefix configMap: name: tenant-prefix-lite-piolt2 items: - key: ingress-config.js path: ingress-config.js defaultMode: 420 containers: - name: cmii-uav-platform-lite-pilot2 image: 镜像仓库/cmii/cmii-uav-platform-lite-pilot2:2.1.0-2026040203-noicp ports: - name: platform-9528 containerPort: 9528 protocol: TCP env: - name: K8S_NAMESPACE value: 命名空间 - name: APPLICATION_NAME value: cmii-uav-platform-lite-pilot2 resources: limits: cpu: '1' memory: 1Gi requests: cpu: 50m memory: 50Mi volumeMounts: - name: nginx-conf mountPath: /etc/nginx/conf.d/nginx.conf subPath: nginx.conf - name: tenant-prefix mountPath: /home/cmii-platform/dist/ingress-config.js subPath: ingress-config.js terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: Always restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} imagePullSecrets: - name: harborsecret schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Service apiVersion: v1 metadata: name: cmii-uav-platform-lite-pilot2 namespace: 命名空间 labels: app.kubernetes.io/version: 6.2.0 cmii.app: cmii-uav-platform-lite-pilot2 cmii.type: frontend octopus.control: frontend-app-wdd spec: ports: - name: web-svc-port protocol: TCP port: 9528 targetPort: 9528 selector: cmii.app: cmii-uav-platform-lite-pilot2 cmii.type: frontend type: ClusterIP --- kind: ConfigMap apiVersion: v1 metadata: name: tenant-prefix-lite-piolt2 namespace: 命名空间 data: ingress-config.js: |- var __GlobalIngressConfig = { TenantEnvironment: "", CloudHOST: "实际公网入口CloudHOST", ApplicationShortName: "piolt2cloud", AppClientId: "", Headers: { ORG_ID: 'pago', PROJECT_ID: 'prgn' }, TdtToken: "XXXX" } var __GlobalSystemConfig = { systemName: "XXX低空应用公共服务平台", platformName: "", ShowICP: false, ShowAgreement: false };