blob: a7e5e748bd3160edb513ea712c4576bf03b8eddf [file] [log] [blame]
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05001#{{ if not .Values.disableSdncUeb }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: ueb-listener
6 namespace: "{{ .Values.nsPrefix }}-sdnc"
7spec:
8 selector:
9 matchLabels:
10 app: ueb-listener
11 template:
12 metadata:
13 labels:
14 app: ueb-listener
15 name: ueb-listener
16 spec:
17 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - sdnc-db-container
23 - --container-name
24 - sdnc-controller-container
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: sdnc-ueb-readiness
34 containers:
35 - command:
36 - /opt/onap/sdnc/ueb-listener/bin/start-ueb-listener.sh
37 env:
38 - name: PROPERTY_DIR
39 value: /opt/onap/sdnc/data/properties
40 - name: SDNC_CONFIG_DIR
41 value: /opt/onap/sdnc/data/properties
42 image: {{ .Values.image.ueblistener }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
44 name: ueb-listener-container
45 volumeMounts:
46 - mountPath: /etc/localtime
47 name: localtime
48 readOnly: true
49 - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties
mayankg27039a57f4d2018-01-31 13:55:56 +000050 subPath: ueb-listener.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050051 name: ueb-config
52 volumes:
53 - name: localtime
54 hostPath:
55 path: /etc/localtime
56 - name: ueb-config
mayankg27039a57f4d2018-01-31 13:55:56 +000057 configMap:
58 name: sdnc-ueb-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050059 imagePullSecrets:
60 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg27039a57f4d2018-01-31 13:55:56 +000061#{{ end }}