104 lines
2.6 KiB
YAML
104 lines
2.6 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cmii-uavms-platform-manager
|
|
namespace: uavcloud-devoperation
|
|
labels:
|
|
cmii.type: frontend
|
|
cmii.app: cmii-uavms-platform-manager
|
|
octopus.control: frontend-app-wdd
|
|
app.kubernetes.io/app-version: 5.7.0
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
selector:
|
|
matchLabels:
|
|
cmii.type: frontend
|
|
cmii.app: cmii-uavms-platform-manager
|
|
template:
|
|
metadata:
|
|
labels:
|
|
cmii.type: frontend
|
|
cmii.app: cmii-uavms-platform-manager
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harborsecret
|
|
containers:
|
|
- name: cmii-uavms-platform-manager
|
|
image: harbor.cdcyy.com.cn/cmii/cmii-uavms-platform-manager:5.6.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: K8S_NAMESPACE
|
|
value: uavcloud-devoperation
|
|
- name: APPLICATION_NAME
|
|
value: cmii-uavms-platform-manager
|
|
ports:
|
|
- name: platform-9528
|
|
containerPort: 9528
|
|
protocol: TCP
|
|
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
|
|
subPath: ingress-config.js
|
|
mountPath: /home/cmii-platform/dist/ingress-config.js
|
|
volumes:
|
|
- name: nginx-conf
|
|
configMap:
|
|
name: nginx-cm
|
|
items:
|
|
- key: nginx.conf
|
|
path: nginx.conf
|
|
- name: tenant-prefix
|
|
configMap:
|
|
name: tenant-prefix-uasmanager
|
|
items:
|
|
- key: ingress-config.js
|
|
path: ingress-config.js
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cmii-uavms-platform-manager
|
|
namespace: uavcloud-devoperation
|
|
labels:
|
|
cmii.type: frontend
|
|
cmii.app: cmii-uavms-platform-manager
|
|
octopus.control: frontend-app-wdd
|
|
app.kubernetes.io/version: 5.7.0
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
cmii.type: frontend
|
|
cmii.app: cmii-uavms-platform-manager
|
|
ports:
|
|
- name: web-svc-port
|
|
port: 9528
|
|
protocol: TCP
|
|
targetPort: 9528
|
|
---
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: tenant-prefix-uasmanager
|
|
namespace: uavcloud-devoperation
|
|
data:
|
|
ingress-config.js: |-
|
|
var __GlobalIngressConfig = {
|
|
TenantEnvironment: "devoperation",
|
|
CloudHOST: "lab.uavcmlc.com",
|
|
ApplicationShortName: "uasmanager",
|
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
|
}
|
|
--- |