blob: aa8a0f1854ef583871dc3a65246a8056725e0f02 [file] [log] [blame]
BjornMagnussonXA663566c2021-11-08 10:25:07 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $DMAAP_MED_APP_NAME
5 namespace: $KUBE_NONRTRIC_NAMESPACE
6 labels:
7 run: $DMAAP_MED_APP_NAME
8 autotest: DMAAPMED
9spec:
10 replicas: 1
11 selector:
12 matchLabels:
13 run: $DMAAP_MED_APP_NAME
14 template:
15 metadata:
16 labels:
17 run: $DMAAP_MED_APP_NAME
18 autotest: DMAAPMED
19 spec:
20 containers:
21 - name: $DMAAP_MED_APP_NAME
22 image: $DMAAP_MED_IMAGE
23 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
24 ports:
25 - name: http
26 containerPort: $DMAAP_MED_INTERNAL_PORT
27 - name: https
28 containerPort: $DMAAP_MED_INTERNAL_SECURE_PORT
29 volumeMounts:
30 - mountPath: $DMAAP_MED_DATA_MOUNT_PATH/$DMAAP_MED_DATA_FILE
31 subPath: $DMAAP_MED_DATA_FILE
32 name: dmaapadp-data-name
33 env:
34 - name: INFO_PRODUCER_HOST
35 value: "$DMAAP_MED_CONF_SELF_HOST"
36 - name: INFO_PRODUCER_PORT
37 value: "$DMAAP_MED_CONF_SELF_PORT"
38 - name: INFO_COORD_ADDR
39 value: "$ECS_SERVICE_PATH"
40 - name: DMAAP_MR_ADDR
41 value: "$MR_SERVICE_PATH"
42 - name: LOG_LEVEL
BjornMagnussonXA6fc58fd2021-11-18 08:19:45 +010043 value: Debug
BjornMagnussonXA663566c2021-11-08 10:25:07 +010044 volumes:
45 - configMap:
46 defaultMode: 420
47 name: $DMAAP_MED_DATA_CONFIGMAP_NAME
48 name: dmaapadp-data-name
49# Selector will be set when pod is started first time
50 nodeSelector:
51