Alexis de Talhouƫt | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncDmaap }} |
| 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: dmaap-listener |
| 6 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 7 | spec: |
| 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 |
| 50 | name: dmaap-dhcapalert-config |
| 51 | volumes: |
| 52 | - name: localtime |
| 53 | hostPath: |
| 54 | path: /etc/localtime |
| 55 | - name: dmaap-dhcapalert-config |
| 56 | hostPath: |
| 57 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/dmaap/dhcpalert.properties |
| 58 | imagePullSecrets: |
| 59 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
| 60 | #{{ end }} |