blob: f1090ce9b68b3922836bebb7256593edd2154c95 [file] [log] [blame]
apiVersion: apps/v1
kind: Deployment
metadata:
name: $ECS_APP_NAME
namespace: $KUBE_NONRTRIC_NAMESPACE
labels:
run: $ECS_APP_NAME
autotest: ECS
spec:
replicas: 1
selector:
matchLabels:
run: $ECS_APP_NAME
template:
metadata:
labels:
run: $ECS_APP_NAME
autotest: ECS
spec:
containers:
- name: $ECS_APP_NAME
image: $ECS_IMAGE
imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
ports:
- name: http
containerPort: $ECS_INTERNAL_PORT
- name: https
containerPort: $ECS_INTERNAL_SECURE_PORT
volumeMounts:
- mountPath: $ECS_CONFIG_MOUNT_PATH
name: ecs-conf-name
volumeMounts:
- mountPath: $ECS_CONTAINER_MNT_DIR
name: ecs-data-name
volumes:
- configMap:
defaultMode: 420
name: $ECS_CONFIG_CONFIGMAP_NAME
name: ecs-conf-name
- persistentVolumeClaim:
claimName: $ECS_DATA_PVC_NAME
name: ecs-data-name
# Selector will be set when pod is started first time
nodeSelector: