blob: b869ca9b83243b62f0cdd65c87b9f6c1219ec816 [file] [log] [blame]
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05001#{{ if not .Values.disableSdncUeb }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: sdnc-ueb-listener
6 namespace: "{{ .Values.nsPrefix }}"
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05007spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +00008 replicas: {{ .Values.uebReplicas }}
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05009 selector:
10 matchLabels:
11 app: ueb-listener
12 template:
13 metadata:
14 labels:
15 app: ueb-listener
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: sdnc-ueb-listener
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050017 spec:
18 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - sdnc-db-container
24 - --container-name
25 - sdnc-controller-container
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: sdnc-ueb-readiness
35 containers:
36 - command:
37 - /opt/onap/sdnc/ueb-listener/bin/start-ueb-listener.sh
38 env:
39 - name: PROPERTY_DIR
40 value: /opt/onap/sdnc/data/properties
41 - name: SDNC_CONFIG_DIR
42 value: /opt/onap/sdnc/data/properties
43 image: {{ .Values.image.ueblistener }}
44 imagePullPolicy: {{ .Values.pullPolicy }}
45 name: ueb-listener-container
46 volumeMounts:
47 - mountPath: /etc/localtime
48 name: localtime
49 readOnly: true
50 - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties
mayankg27039a57f4d2018-01-31 13:55:56 +000051 subPath: ueb-listener.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050052 name: ueb-config
53 volumes:
54 - name: localtime
55 hostPath:
56 path: /etc/localtime
57 - name: ueb-config
mayankg27039a57f4d2018-01-31 13:55:56 +000058 configMap:
59 name: sdnc-ueb-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050060 imagePullSecrets:
61 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg27039a57f4d2018-01-31 13:55:56 +000062#{{ end }}