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