Alexis de Talhouƫt | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncUeb }} |
| 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: ueb-listener |
| 6 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: ueb-listener |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: ueb-listener |
| 15 | name: ueb-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-ueb-readiness |
| 34 | containers: |
| 35 | - command: |
| 36 | - /opt/onap/sdnc/ueb-listener/bin/start-ueb-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.ueblistener }} |
| 43 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 44 | name: ueb-listener-container |
| 45 | volumeMounts: |
| 46 | - mountPath: /etc/localtime |
| 47 | name: localtime |
| 48 | readOnly: true |
| 49 | - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties |
| 50 | name: ueb-config |
| 51 | volumes: |
| 52 | - name: localtime |
| 53 | hostPath: |
| 54 | path: /etc/localtime |
| 55 | - name: ueb-config |
| 56 | hostPath: |
| 57 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/ueb/ueb-listener.properties |
| 58 | imagePullSecrets: |
| 59 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
| 60 | #{{ end }} |