1 # Copyright © 2017 Amdocs, Bell Canada
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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 apiVersion: extensions/v1beta1
17 name: {{ include "common.fullname" . }}
18 namespace: {{ include "common.namespace" . }}
20 app: {{ include "common.name" . }}
21 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
22 release: {{ include "common.release" . }}
23 heritage: {{ .Release.Service }}
25 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ include "common.release" . }}
32 hostname: {{ .Values.global.dmaapDrProvName }}
34 - name: {{ include "common.name" . }}-readiness
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 - {{ .Values.config.dmaapDrDb.mariadbContName }}
47 fieldPath: metadata.namespace
48 {{- if .Values.global.aafEnabled }}
49 - name: {{ include "common.name" . }}-aaf-readiness
50 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 fieldPath: metadata.namespace
67 - name: {{ include "common.name" . }}-dr-prov-aaf-config
68 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
72 - mountPath: {{ .Values.persistence.aafCredsPath }}
73 name: {{ include "common.fullname" . }}-aaf-config-vol
76 value: "{{ .Values.aafConfig.fqi }}"
77 - name: aaf_locate_url
78 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
79 - name: aaf_locator_container
80 value: "{{ .Values.global.aafLocatorContainer }}"
81 - name: aaf_locator_container_ns
82 value: "{{ .Release.Namespace }}"
83 - name: aaf_locator_fqdn
84 value: "{{ .Values.aafConfig.fqdn }}"
85 - name: aaf_locator_public_fqdn
86 value: "{{.Values.aafConfig.publicFqdn}}"
87 - name: aaf_locator_app_ns
88 value: "{{ .Values.global.aafAppNs }}"
90 value: "{{ .Values.aafConfig.aafDeployFqi }}"
91 - name: DEPLOY_PASSWORD
92 value: "{{ .Values.aafConfig.aafDeployPass }}"
93 - name: cadi_longitude
94 value: "{{ .Values.aafConfig.cadiLongitude }}"
96 value: "{{ .Values.aafConfig.cadiLatitude }}"
97 - name: {{ include "common.name" . }}-permission-fixer
98 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
99 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
101 - mountPath: {{ .Values.persistence.aafCredsPath }}
102 name: {{ include "common.fullname" . }}-aaf-config-vol
103 command: ["chown","-Rf","1000:1001", "/opt/app/"]
106 - name: {{ include "common.name" . }}
107 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
108 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
110 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
111 {{- if eq .Values.liveness.enabled true }}
114 port: {{ .Values.config.dmaapDrProv.internalPort }}
115 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
116 periodSeconds: {{ .Values.liveness.periodSeconds }}
120 port: {{ .Values.config.dmaapDrProv.internalPort }}
121 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
122 periodSeconds: {{ .Values.readiness.periodSeconds }}
125 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "login") | indent 12 }}
127 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "password") | indent 12 }}
129 {{- if .Values.global.aafEnabled }}
130 - mountPath: {{ .Values.persistence.aafCredsPath }}
131 name: {{ include "common.fullname" . }}-aaf-config-vol
133 - mountPath: /etc/localtime
136 - mountPath: /opt/app/datartr/etc/provserver.properties
137 name: {{ include "common.fullname" . }}-config
138 subPath: provserver.properties
139 - mountPath: /opt/app/datartr/etc/logback.xml
140 name: {{ include "common.fullname" . }}-log-conf
142 - mountPath: {{ .Values.global.loggingDirectory }}
143 name: {{ include "common.fullname" . }}-logs
145 {{ include "common.resources" . }}
146 {{- if .Values.nodeSelector }}
148 {{ toYaml .Values.nodeSelector | indent 10 }}
150 {{- if .Values.affinity }}
152 {{ toYaml .Values.affinity | indent 10 }}
154 # Filebeat sidecar container
155 - name: {{ include "common.name" . }}-filebeat-onap
156 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
157 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
159 - name: {{ include "common.fullname" . }}-filebeat-conf
160 mountPath: /usr/share/filebeat/filebeat.yml
161 subPath: filebeat.yml
162 - name: {{ include "common.fullname" . }}-data-filebeat
163 mountPath: /usr/share/filebeat/data
164 - name: {{ include "common.fullname" . }}-logs
165 mountPath: /var/log/onap/datarouter-prov
170 - name: {{ include "common.fullname" . }}-config
172 name: {{ include "common.fullname" . }}-configmap
174 - key: provserver.properties
175 path: provserver.properties
176 - name: {{ include "common.fullname" . }}-log-conf
178 name: {{ include "common.fullname" . }}-log
179 - name: {{ include "common.fullname" . }}-filebeat-conf
181 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
182 - name: {{ include "common.fullname" . }}-data-filebeat
184 - name: {{ include "common.fullname" . }}-logs
186 {{- if .Values.global.aafEnabled }}
187 - name: {{ include "common.fullname" . }}-aaf-config-vol
188 {{- if .Values.persistence.enabled }}
189 persistentVolumeClaim:
190 claimName: {{ include "common.fullname" . }}-aaf-props
196 - name: "{{ include "common.namespace" . }}-docker-registry-key"