Files
ProjectOctopus/agent-common/real_project/uavcloud-demo/aware.yaml
2025-02-25 17:01:14 +08:00

103 lines
2.6 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uav-platform-awareness
namespace: uavcloud-demo
labels:
cmii.type: frontend
cmii.app: cmii-uav-platform-awareness
octopus.control: frontend-app-wdd
app.kubernetes.io/app-version: 6.0.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: frontend
cmii.app: cmii-uav-platform-awareness
template:
metadata:
labels:
cmii.type: frontend
cmii.app: cmii-uav-platform-awareness
spec:
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uav-platform-awareness
image: harbor.cdcyy.com.cn/cmii/cmii-uav-platform-awareness:6.0.0
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-demo
- name: APPLICATION_NAME
value: cmii-uav-platform-awareness
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-awareness
items:
- key: ingress-config.js
path: ingress-config.js
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uav-platform-awareness
namespace: uavcloud-demo
labels:
cmii.type: frontend
cmii.app: cmii-uav-platform-awareness
octopus.control: frontend-app-wdd
app.kubernetes.io/version: 6.0.0
spec:
type: ClusterIP
selector:
cmii.type: frontend
cmii.app: cmii-uav-platform-awareness
ports:
- name: web-svc-port
port: 9528
protocol: TCP
targetPort: 9528
---
kind: ConfigMap
apiVersion: v1
metadata:
name: tenant-prefix-awareness
namespace: uavcloud-demo
data:
ingress-config.js: |-
var __GlobalIngressConfig = {
TenantEnvironment: "",
CloudHOST: "www.demo.uavcmlc.com",
ApplicationShortName: "awareness",
AppClientId: "empty"
}