vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 15 | #{{ if not .Values.disableSdncDmaap }} |
| 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 19 | name: sdnc-dmaap-listener |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.dmaapReplicas }} |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: dmaap-listener |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: dmaap-listener |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: sdnc-dmaap-listener |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 31 | spec: |
| 32 | initContainers: |
| 33 | - command: |
| 34 | - /root/ready.py |
| 35 | args: |
| 36 | - --container-name |
| 37 | - sdnc-db-container |
| 38 | - --container-name |
| 39 | - sdnc-controller-container |
| 40 | env: |
| 41 | - name: NAMESPACE |
| 42 | valueFrom: |
| 43 | fieldRef: |
| 44 | apiVersion: v1 |
| 45 | fieldPath: metadata.namespace |
| 46 | image: {{ .Values.image.readiness }} |
| 47 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 48 | name: sdnc-dmaap-readiness |
| 49 | containers: |
| 50 | - command: |
| 51 | - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh |
| 52 | env: |
| 53 | - name: PROPERTY_DIR |
| 54 | value: /opt/onap/sdnc/data/properties |
| 55 | - name: SDNC_CONFIG_DIR |
| 56 | value: /opt/onap/sdnc/data/properties |
| 57 | image: {{ .Values.image.dmaaplistener }} |
| 58 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 59 | name: dmaapp-listener-container |
| 60 | volumeMounts: |
| 61 | - mountPath: /etc/localtime |
| 62 | name: localtime |
| 63 | readOnly: true |
| 64 | - mountPath: /opt/onap/sdnc/data/properties/dhcpalert.properties |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 65 | subPath: dhcpalert.properties |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 66 | name: dmaap-dhcapalert-config |
| 67 | volumes: |
| 68 | - name: localtime |
| 69 | hostPath: |
| 70 | path: /etc/localtime |
| 71 | - name: dmaap-dhcapalert-config |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 72 | configMap: |
| 73 | name: sdnc-dmaap-configmap |
Alexis de Talhouët | ad7edcf | 2018-01-10 11:37:25 -0500 | [diff] [blame] | 74 | imagePullSecrets: |
| 75 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | d524cdb | 2018-01-31 13:53:19 +0000 | [diff] [blame] | 76 | #{{ end }} |