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 |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 50 | subPath: dhcpalert.properties |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 51 | name: dmaap-dhcapalert-config |
| 52 | volumes: |
| 53 | - name: localtime |
| 54 | hostPath: |
| 55 | path: /etc/localtime |
| 56 | - name: dmaap-dhcapalert-config |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 57 | configMap: |
| 58 | name: sdnc-dmaap-configmap |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 59 | imagePullSecrets: |
| 60 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 61 | #{{ end }} |