blob: 9547dea440a6c0a907301954b0682eb7f8976cb7 [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:
20 containers:
21 - name: $ICS_APP_NAME
22 image: $ICS_IMAGE
23 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
24 ports:
25 - name: http
26 containerPort: $ICS_INTERNAL_PORT
27 - name: https
28 containerPort: $ICS_INTERNAL_SECURE_PORT
29 volumeMounts:
30 - mountPath: $ICS_CONFIG_MOUNT_PATH
31 name: ics-conf-name
32 volumeMounts:
33 - mountPath: $ICS_CONTAINER_MNT_DIR
34 name: ics-data-name
35 volumes:
36 - configMap:
37 defaultMode: 420
38 name: $ICS_CONFIG_CONFIGMAP_NAME
39 name: ics-conf-name
40 - persistentVolumeClaim:
41 claimName: $ICS_DATA_PVC_NAME
42 name: ics-data-name
43# Selector will be set when pod is started first time
44 nodeSelector:
45