1 # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved.
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.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 serviceName: "{{ .Values.service.name }}-cluster"
30 replicas: {{ .Values.replicaCount }}
31 podManagementPolicy: Parallel
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
43 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; chmod 0755 /config/${PFILE}; done"
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "appcdb-user-creds" "key" "login") | indent 10 }}
47 - name: APPC_DB_PASSWD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "appcdb-user-creds" "key" "password") | indent 10 }}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdncdb-user-creds" "key" "login") | indent 10 }}
51 - name: SDNC_DB_PASSWD
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdncdb-user-creds" "key" "password") | indent 10 }}
54 - mountPath: /config-input/appc-data-properties
55 name: onap-appc-data-properties-input
56 - mountPath: /config-input/appc-svclogic-config
57 name: onap-appc-svclogic-config-input
58 - mountPath: /config-input/sdnc-data-properties
59 name: onap-sdnc-data-properties-input
60 - mountPath: /config-input/sdnc-svclogic-config
61 name: onap-sdnc-svclogic-config-input
62 - mountPath: /config/appc-data-properties
63 name: onap-appc-data-properties
64 - mountPath: /config/appc-svclogic-config
65 name: onap-appc-svclogic-config
66 - mountPath: /config/sdnc-data-properties
67 name: onap-sdnc-data-properties
68 - mountPath: /config/sdnc-svclogic-config
69 name: onap-sdnc-svclogic-config
70 image: "{{ .Values.global.envsubstImage }}"
71 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 name: {{ include "common.name" . }}-update-config
74 - name: {{ include "common.name" . }}-readiness
79 - {{.Values.config.mariadbGaleraContName}}
85 fieldPath: metadata.namespace
86 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
88 - name: {{ include "common.name" . }}-chown
90 command: ["sh", "-c", "chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }}"]
92 - mountPath: {{ .Values.persistence.mdsalPath }}
93 name: {{ include "common.fullname" . }}-data
95 - name: {{ include "common.name" . }}
96 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
97 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
99 - /opt/appc/bin/startODL.sh
101 - containerPort: {{ .Values.service.internalPort }}
102 - containerPort: {{ .Values.service.externalPort2 }}
105 port: {{ .Values.service.internalPort }}
106 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
107 periodSeconds: {{ .Values.readiness.periodSeconds }}
109 - name: MYSQL_ROOT_PASSWORD
110 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-pass" "key" "password") | indent 14}}
112 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "appcdb-user-creds" "key" "login") | indent 14 }}
113 - name: APPC_DB_PASSWD
114 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "appcdb-user-creds" "key" "password") | indent 14 }}
116 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdncdb-user-creds" "key" "login") | indent 14 }}
117 - name: SDNC_DB_PASSWD
118 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdncdb-user-creds" "key" "password") | indent 14 }}
119 - name: SDNC_CONFIG_DIR
120 value: "{{ .Values.config.configDir }}"
121 - name: APPC_CONFIG_DIR
122 value: "{{ .Values.config.configDir }}"
123 - name: DMAAP_TOPIC_ENV
124 value: "{{ .Values.config.dmaapTopic }}"
126 value: "{{ .Values.config.enableAAF }}"
127 - name: ENABLE_ODL_CLUSTER
128 value: "{{ .Values.config.enableClustering }}"
129 - name: APPC_REPLICAS
130 value: "{{ .Values.replicaCount }}"
132 - mountPath: /etc/localtime
135 - mountPath: /opt/onap/appc/data/properties/dblib.properties
136 name: onap-appc-data-properties
137 subPath: dblib.properties
138 - mountPath: /opt/onap/appc/data/properties/svclogic.properties
139 name: onap-appc-data-properties
140 subPath: svclogic.properties
141 - mountPath: /opt/onap/appc/data/properties/appc.properties
142 name: onap-appc-data-properties
143 subPath: appc.properties
144 - mountPath: /opt/onap/appc/data/properties/aaiclient.properties
145 name: onap-appc-data-properties
146 subPath: aaiclient.properties
147 - mountPath: /opt/onap/appc/data/properties/cadi.properties
148 name: onap-appc-data-properties
149 subPath: cadi.properties
150 - mountPath: /opt/onap/appc/data/properties/aaa-app-config.xml
151 name: onap-appc-data-properties-input
152 subPath: aaa-app-config.xml
153 - mountPath: /opt/onap/appc/data/properties/bath_config.csv
154 name: onap-appc-data-properties
155 subPath: bath_config.csv
156 - mountPath: /opt/onap/appc/svclogic/config/svclogic.properties
157 name: onap-appc-svclogic-config
158 subPath: svclogic.properties
159 - mountPath: /opt/onap/appc/svclogic/bin/showActiveGraphs.sh
160 name: onap-appc-svclogic-bin
161 subPath: showActiveGraphs.sh
162 - mountPath: /opt/onap/appc/bin/startODL.sh
165 - mountPath: /opt/onap/appc/bin/installAppcDb.sh
167 subPath: installAppcDb.sh
168 - mountPath: /opt/onap/appc/bin/health_check.sh
170 subPath: health_check.sh
171 - mountPath: /opt/onap/ccsdk/data/properties/dblib.properties
172 name: onap-sdnc-data-properties
173 subPath: dblib.properties
174 - mountPath: /opt/onap/ccsdk/data/properties/svclogic.properties
175 name: onap-sdnc-data-properties
176 subPath: svclogic.properties
177 - mountPath: /opt/onap/ccsdk/data/properties/aaiclient.properties
178 name: onap-sdnc-data-properties
179 subPath: aaiclient.properties
180 - mountPath: /opt/onap/ccsdk/svclogic/config/svclogic.properties
181 name: onap-sdnc-svclogic-config
182 subPath: svclogic.properties
183 - mountPath: /opt/onap/ccsdk/svclogic/bin/showActiveGraphs.sh
184 name: onap-sdnc-svclogic-bin
185 subPath: showActiveGraphs.sh
186 - mountPath: /opt/onap/ccsdk/bin/installSdncDb.sh
188 subPath: installSdncDb.sh
189 - mountPath: {{ .Values.persistence.mdsalPath }}
190 name: {{ include "common.fullname" . }}-data
191 - mountPath: {{ .Values.log.path }}
193 - mountPath: /opt/onap/appc/data/org.ops4j.pax.logging.cfg
195 subPath: org.ops4j.pax.logging.cfg
196 - mountPath: /opt/onap/appc/data/stores/org.onap.appc.p12
198 subPath: org.onap.appc.p12
199 - mountPath: /opt/onap/appc/data/stores/org.onap.appc.keyfile
201 subPath: org.onap.appc.keyfile
203 {{ include "common.resources" . | indent 12 }}
204 {{- if .Values.nodeSelector }}
206 {{ toYaml .Values.nodeSelector | indent 10 }}
208 {{- if .Values.affinity }}
210 {{ toYaml .Values.affinity | indent 10 }}
213 # side car containers
214 {{ include "common.log.sidecar" . | nindent 8 }}
216 - name: keyfile-certs
218 secretName: {{ include "common.fullname" . }}-certs
221 secretName: {{ include "common.fullname" . }}-certs
227 name: {{ include "common.fullname" . }}-logging-cfg
230 {{ include "common.log.volumes" . | nindent 8 }}
231 - name: onap-appc-data-properties-input
233 name: {{ include "common.fullname" . }}-onap-appc-data-properties
234 - name: onap-appc-svclogic-config-input
236 name: {{ include "common.fullname" . }}-onap-appc-svclogic-config
237 - name: onap-appc-svclogic-bin
239 name: {{ include "common.fullname" . }}-onap-appc-svclogic-bin
241 - name: onap-appc-bin
243 name: {{ include "common.fullname" . }}-onap-appc-bin
245 - name: onap-sdnc-data-properties-input
247 name: {{ include "common.fullname" . }}-onap-sdnc-data-properties
248 - name: onap-sdnc-svclogic-config-input
250 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-config
251 - name: onap-sdnc-svclogic-bin
253 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-bin
255 - name: onap-sdnc-bin
257 name: {{ include "common.fullname" . }}-onap-sdnc-bin
259 - name: onap-appc-data-properties
262 - name: onap-appc-svclogic-config
265 - name: onap-sdnc-data-properties
268 - name: onap-sdnc-svclogic-config
271 {{ if not .Values.persistence.enabled }}
272 - name: {{ include "common.fullname" . }}-data
275 volumeClaimTemplates:
277 name: {{ include "common.fullname" . }}-data
279 name: {{ include "common.fullname" . }}
280 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
281 release: "{{ include "common.release" . }}"
282 heritage: "{{ .Release.Service }}"
285 - {{ .Values.persistence.accessMode }}
286 storageClassName: {{ include "common.storageClass" . }}
289 storage: {{ .Values.persistence.size }}