blob: 494db032bb25a3070685a0f79d2200064e80299a [file] [log] [blame]
BjornMagnussonXA007b6452021-11-29 08:03:38 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $ICS_APP_NAME
5 namespace: $KUBE_NONRTRIC_NAMESPACE
6 labels:
7 run: $ICS_APP_NAME
8 autotest: ICS
9spec:
10 replicas: 1
11 selector:
12 matchLabels:
13 run: $ICS_APP_NAME
14 template:
15 metadata:
16 labels:
17 run: $ICS_APP_NAME
18 autotest: ICS
19 spec:
BjornMagnussonXAc8f92e92022-02-28 15:16:37 +010020 securityContext:
21 runAsUser: 0
22# Need to run as root to be able to store files in dir mounted as a hostPath volume
BjornMagnussonXA007b6452021-11-29 08:03:38 +010023 containers:
24 - name: $ICS_APP_NAME
25 image: $ICS_IMAGE
26 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
27 ports:
28 - name: http
29 containerPort: $ICS_INTERNAL_PORT
30 - name: https
31 containerPort: $ICS_INTERNAL_SECURE_PORT
32 volumeMounts:
BjornMagnussonXA05bfe482021-12-02 08:47:41 +010033 - mountPath: $ICS_CONFIG_MOUNT_PATH/$ICS_CONFIG_FILE
34 subPath: $ICS_CONFIG_FILE
BjornMagnussonXA007b6452021-11-29 08:03:38 +010035 name: ics-conf-name
BjornMagnussonXA007b6452021-11-29 08:03:38 +010036 - mountPath: $ICS_CONTAINER_MNT_DIR
37 name: ics-data-name
38 volumes:
39 - configMap:
40 defaultMode: 420
41 name: $ICS_CONFIG_CONFIGMAP_NAME
42 name: ics-conf-name
43 - persistentVolumeClaim:
44 claimName: $ICS_DATA_PVC_NAME
45 name: ics-data-name
46# Selector will be set when pod is started first time
47 nodeSelector:
48