blob: f1090ce9b68b3922836bebb7256593edd2154c95 [file] [log] [blame]
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $ECS_APP_NAME
5 namespace: $KUBE_NONRTRIC_NAMESPACE
6 labels:
7 run: $ECS_APP_NAME
8 autotest: ECS
9spec:
10 replicas: 1
11 selector:
12 matchLabels:
13 run: $ECS_APP_NAME
14 template:
15 metadata:
16 labels:
17 run: $ECS_APP_NAME
18 autotest: ECS
19 spec:
20 containers:
21 - name: $ECS_APP_NAME
22 image: $ECS_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: $ECS_INTERNAL_PORT
27 - name: https
28 containerPort: $ECS_INTERNAL_SECURE_PORT
29 volumeMounts:
30 - mountPath: $ECS_CONFIG_MOUNT_PATH
31 name: ecs-conf-name
32 volumeMounts:
33 - mountPath: $ECS_CONTAINER_MNT_DIR
34 name: ecs-data-name
35 volumes:
36 - configMap:
37 defaultMode: 420
38 name: $ECS_CONFIG_CONFIGMAP_NAME
39 name: ecs-conf-name
40 - persistentVolumeClaim:
BjornMagnussonXAa69cd902021-04-22 23:46:10 +020041 claimName: $ECS_DATA_PVC_NAME
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010042 name: ecs-data-name
BjornMagnussonXAa69cd902021-04-22 23:46:10 +020043# Selector will be set when pod is started first time
44 nodeSelector:
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010045