blob: 2b2b84b0dafbec6326cbcd4853205e7d684e740b [file] [log] [blame]
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $CONTROL_PANEL_APP_NAME
5 namespace: $KUBE_NONRTRIC_NAMESPACE
6 labels:
7 run: $CONTROL_PANEL_APP_NAME
8 autotest: CP
9spec:
10 replicas: 1
11 selector:
12 matchLabels:
13 run: $CONTROL_PANEL_APP_NAME
14 template:
15 metadata:
16 labels:
17 run: $CONTROL_PANEL_APP_NAME
18 autotest: CP
19 spec:
20 containers:
21 - name: $CONTROL_PANEL_APP_NAME
22 image: $CONTROL_PANEL_IMAGE
BjornMagnussonXA483ee332021-04-08 01:35:24 +020023 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010024 ports:
25 - name: http
26 containerPort: $CONTROL_PANEL_INTERNAL_PORT
27 - name: https
28 containerPort: $CONTROL_PANEL_INTERNAL_SECURE_PORT
29 volumeMounts:
30 - mountPath: $CONTROL_PANEL_CONFIG_MOUNT_PATH/$CONTROL_PANEL_CONFIG_FILE
31 subPath: $CONTROL_PANEL_CONFIG_FILE
32 name: cp-conf-name
33 volumes:
34 - configMap:
35 defaultMode: 420
36 name: $CP_CONFIG_CONFIGMAP_NAME
37 name: cp-conf-name