blob: eb6f354abd99aea2f170ab4a331268fd7e1fd991 [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:
vaibhav_16decb23999a2018-02-14 09:00:07 +00008 replicas: {{ .Values.dmaapReplicas }}
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -05009 selector:
10 matchLabels:
11 app: dmaap-listener
12 template:
13 metadata:
14 labels:
15 app: dmaap-listener
16 name: dmaap-listener
17 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-dmaap-readiness
35 containers:
36 - command:
37 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-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.dmaaplistener }}
44 imagePullPolicy: {{ .Values.pullPolicy }}
45 name: dmaapp-listener-container
46 volumeMounts:
47 - mountPath: /etc/localtime
48 name: localtime
49 readOnly: true
50 - mountPath: /opt/onap/sdnc/data/properties/dhcpalert.properties
mayankg2703d524cdb2018-01-31 13:53:19 +000051 subPath: dhcpalert.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050052 name: dmaap-dhcapalert-config
53 volumes:
54 - name: localtime
55 hostPath:
56 path: /etc/localtime
57 - name: dmaap-dhcapalert-config
mayankg2703d524cdb2018-01-31 13:53:19 +000058 configMap:
59 name: sdnc-dmaap-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050060 imagePullSecrets:
61 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703d524cdb2018-01-31 13:53:19 +000062#{{ end }}