blob: b9ba34615656f46f63ebab3fb08e7074380fec42 [file] [log] [blame]
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05001#{{ if not .Values.disableSdncDmaap }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: dmaap-listener
6 namespace: "{{ .Values.nsPrefix }}-sdnc"
7spec:
8 selector:
9 matchLabels:
10 app: dmaap-listener
11 template:
12 metadata:
13 labels:
14 app: dmaap-listener
15 name: dmaap-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-dmaap-readiness
34 containers:
35 - command:
36 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-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.dmaaplistener }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
44 name: dmaapp-listener-container
45 volumeMounts:
46 - mountPath: /etc/localtime
47 name: localtime
48 readOnly: true
49 - mountPath: /opt/onap/sdnc/data/properties/dhcpalert.properties
mayankg2703d524cdb2018-01-31 13:53:19 +000050 subPath: dhcpalert.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050051 name: dmaap-dhcapalert-config
52 volumes:
53 - name: localtime
54 hostPath:
55 path: /etc/localtime
56 - name: dmaap-dhcapalert-config
mayankg2703d524cdb2018-01-31 13:53:19 +000057 configMap:
58 name: sdnc-dmaap-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050059 imagePullSecrets:
60 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703d524cdb2018-01-31 13:53:19 +000061#{{ end }}