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: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 5 | name: sdnc-ueb-listener |
| 6 | namespace: "{{ .Values.nsPrefix }}" |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.uebReplicas }} |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: ueb-listener |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: ueb-listener |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 16 | name: sdnc-ueb-listener |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 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-ueb-readiness |
| 35 | containers: |
| 36 | - command: |
| 37 | - /opt/onap/sdnc/ueb-listener/bin/start-ueb-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.ueblistener }} |
| 44 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 45 | name: ueb-listener-container |
| 46 | volumeMounts: |
| 47 | - mountPath: /etc/localtime |
| 48 | name: localtime |
| 49 | readOnly: true |
| 50 | - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties |
mayankg2703 | 9a57f4d | 2018-01-31 13:55:56 +0000 | [diff] [blame] | 51 | subPath: ueb-listener.properties |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 52 | name: ueb-config |
| 53 | volumes: |
| 54 | - name: localtime |
| 55 | hostPath: |
| 56 | path: /etc/localtime |
| 57 | - name: ueb-config |
mayankg2703 | 9a57f4d | 2018-01-31 13:55:56 +0000 | [diff] [blame] | 58 | configMap: |
| 59 | name: sdnc-ueb-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 | 9a57f4d | 2018-01-31 13:55:56 +0000 | [diff] [blame] | 62 | #{{ end }} |