Merge "Added kafka interface stub"
[nonrtric.git] / test / simulator-group / ics / app.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: $ICS_APP_NAME
5   namespace: $KUBE_NONRTRIC_NAMESPACE
6   labels:
7     run: $ICS_APP_NAME
8     autotest: ICS
9 spec:
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/$ICS_CONFIG_FILE
31           subPath: $ICS_CONFIG_FILE
32           name: ics-conf-name
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