126 lines
3.2 KiB
YAML
126 lines
3.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/app-version: uas-2.3
|
|
cmii.app: cmii-uav-platform-uas
|
|
cmii.type: frontend
|
|
octopus.control: frontend-app-wdd
|
|
name: cmii-uav-platform-uas
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
cmii.app: cmii-uav-platform-uas
|
|
cmii.type: frontend
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 1
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
cmii.app: cmii-uav-platform-uas
|
|
cmii.type: frontend
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: K8S_NAMESPACE
|
|
value: bj-sh-uas-260511
|
|
- name: APPLICATION_NAME
|
|
value: cmii-uav-platform-uas
|
|
image: 192.168.3.31:8088/cmii/cmii-uav-platform-uas:2.3.4-xa-20260427
|
|
imagePullPolicy: Always
|
|
name: cmii-uav-platform-uas
|
|
ports:
|
|
- containerPort: 9528
|
|
name: platform-9528
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 50Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /etc/nginx/conf.d/nginx.conf
|
|
name: nginx-conf
|
|
subPath: nginx.conf
|
|
- mountPath: /home/cmii-platform/dist/ingress-config.js
|
|
name: tenant-prefix
|
|
subPath: ingress-config.js
|
|
dnsPolicy: ClusterFirst
|
|
imagePullSecrets:
|
|
- name: harborsecret
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- configMap:
|
|
defaultMode: 420
|
|
items:
|
|
- key: nginx.conf
|
|
path: nginx.conf
|
|
name: nginx-cm
|
|
name: nginx-conf
|
|
- configMap:
|
|
defaultMode: 420
|
|
items:
|
|
- key: ingress-config.js
|
|
path: ingress-config.js
|
|
name: tenant-prefix-uas
|
|
name: tenant-prefix
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/version: uas-2.3
|
|
cmii.app: cmii-uav-platform-uas
|
|
cmii.type: frontend
|
|
octopus.control: frontend-app-wdd
|
|
name: cmii-uav-platform-uas
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
ports:
|
|
- name: web-svc-port
|
|
port: 9528
|
|
protocol: TCP
|
|
targetPort: 9528
|
|
selector:
|
|
cmii.app: cmii-uav-platform-uas
|
|
cmii.type: frontend
|
|
sessionAffinity: None
|
|
type: ClusterIP
|
|
---
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: tenant-prefix-uas
|
|
namespace: bj-sh-uas-260511
|
|
data:
|
|
ingress-config.js: |-
|
|
var __GlobalIngressConfig = {
|
|
TenantEnvironment: "",
|
|
CloudHOST: "实际公网入口CloudHOST",
|
|
ApplicationShortName: "uas",
|
|
TdtToken: '0b0f172571340ced0900bf2fd08cdbfd',
|
|
AppClientId: "empty",
|
|
brandConfig: {
|
|
title: '三河低空应用公共服务平台'
|
|
},
|
|
MapConfigs:{
|
|
center: [115.941198, 39.049656]
|
|
}
|
|
}
|