blob: 454e3aa2eb656b574b27614a6a3afd9866fceabd [file] [log] [blame]
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +01001{{/*
egernug27578332020-03-26 10:27:55 +00002# Copyright © 2020 Samsung Electronics
jmac065e2ce2018-03-29 01:18:02 +00003# Copyright © 2017 Amdocs, Bell Canada
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010016*/}}
jmac065e2ce2018-03-29 01:18:02 +000017
Grzegorz-Lis1318a772020-07-23 15:08:43 +020018apiVersion: apps/v1
jmac065e2ce2018-03-29 01:18:02 +000019kind: StatefulSet
Alexander Dehn9b797d62020-04-21 09:53:50 +000020metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
jmac065e2ce2018-03-29 01:18:02 +000021spec:
Grzegorz-Lis1318a772020-07-23 15:08:43 +020022 selector:
23 matchLabels:
24 app: {{ include "common.name" . }}
BorislavG1ffbd992018-04-24 07:56:27 +000025 serviceName: {{ include "common.servicename" . }}-cluster
jmac065e2ce2018-03-29 01:18:02 +000026 replicas: {{ .Values.replicaCount }}
Alexander Dehn9b797d62020-04-21 09:53:50 +000027 selector: {{- include "common.selectors" . | nindent 4 }}
jmac065e2ce2018-03-29 01:18:02 +000028 podManagementPolicy: Parallel
29 template:
Alexander Dehn9b797d62020-04-21 09:53:50 +000030 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
jmac065e2ce2018-03-29 01:18:02 +000031 spec:
32 initContainers:
33 - command:
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010034 - sh
35 args:
36 - -c
37 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
38 env:
39 - name: AAI_CLIENT_NAME
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010040 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aai-user-creds" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010041 - name: AAI_CLIENT_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010042 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aai-user-creds" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010043 - name: MODELSERVICE_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010044 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-user-creds" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010045 - name: MODELSERVICE_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010046 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-user-creds" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010047 - name: RESTCONF_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010048 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010049 - name: RESTCONF_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010050 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010051 - name: ANSIBLE_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010052 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ansible-creds" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010053 - name: ANSIBLE_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010054 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ansible-creds" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010055 - name: SCALEOUT_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010056 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "scaleout-creds" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010057 - name: SCALEOUT_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010058 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "scaleout-creds" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010059 - name: NETBOX_APIKEY
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010060 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "netbox-apikey" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010061 - name: SDNC_DB_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010062 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010063 - name: SDNC_DB_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010064 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010065 volumeMounts:
66 - mountPath: /config-input
67 name: config-input
68 - mountPath: /config
69 name: properties
70 image: "{{ .Values.global.envsubstImage }}"
71 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 name: {{ include "common.name" . }}-update-config
Alexander Dehn9b797d62020-04-21 09:53:50 +000073 {{ if .Values.dgbuilder.enabled -}}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010074 - command:
Sylvain Desbureaux1694e1d2020-08-21 09:58:25 +020075 - /app/ready.py
jmac065e2ce2018-03-29 01:18:02 +000076 args:
Alexander Dehn9b797d62020-04-21 09:53:50 +000077 {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}}
jmac065e2ce2018-03-29 01:18:02 +000078 - --container-name
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010079 - {{ include "common.mariadbService" . }}
Alexander Dehn9b797d62020-04-21 09:53:50 +000080 {{ end -}}
81 {{ if .Values.config.sdnr.enabled -}}
82 - --container-name
83 - {{ include "common.name" . }}-sdnrdb-init-job
84 {{ end -}}
jmac065e2ce2018-03-29 01:18:02 +000085 env:
86 - name: NAMESPACE
87 valueFrom:
88 fieldRef:
89 apiVersion: v1
90 fieldPath: metadata.namespace
Sylvain Desbureaux1694e1d2020-08-21 09:58:25 +020091 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
jmac065e2ce2018-03-29 01:18:02 +000092 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +010093 name: {{ include "common.name" . }}-readiness
Alexander Dehn9b797d62020-04-21 09:53:50 +000094 {{ end -}}
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +020095{{ include "common.certInitializer.initContainer" . | indent 6 }}
96
egernug27578332020-03-26 10:27:55 +000097 {{ if .Values.global.cmpv2Enabled }}
98 - name: certs-init
99 image: "{{ .Values.global.repository }}/{{ .Values.global.platform.certServiceClient.image }}"
100 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
101 env:
102 - name: REQUEST_URL
103 value: {{ .Values.global.platform.certServiceClient.envVariables.requestURL }}
104 - name: REQUEST_TIMEOUT
105 value: "30000"
106 - name: OUTPUT_PATH
107 value: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
108 - name: CA_NAME
109 value: {{ .Values.global.platform.certServiceClient.envVariables.caName }}
110 - name: COMMON_NAME
111 value: {{ .Values.global.platform.certServiceClient.envVariables.common_name }}
112 - name: ORGANIZATION
113 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Organization }}
114 - name: ORGANIZATION_UNIT
115 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2OrganizationalUnit }}
116 - name: LOCATION
117 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Location }}
118 - name: STATE
119 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2State }}
120 - name: COUNTRY
121 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Country }}
122 - name: KEYSTORE_PATH
123 value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePath }}
124 - name: KEYSTORE_PASSWORD
125 value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePassword }}
126 - name: TRUSTSTORE_PATH
127 value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePath }}
128 - name: TRUSTSTORE_PASSWORD
129 value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePassword }}
130 terminationMessagePath: /dev/termination-log
131 terminationMessagePolicy: File
132 volumeMounts:
133 - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
134 name: certs
135 - mountPath: {{ .Values.global.platform.certServiceClient.secret.mountPath }}
136 name: certservice-tls-volume
137 {{ end }}
138
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400139 - name: {{ include "common.name" . }}-chown
Alexander Dehn1373c9c2020-09-02 09:01:15 +0000140 image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
Lucjan Bryndza5c63e932020-06-25 08:43:23 +0000141 command:
142 - sh
143 args:
144 - -c
145 - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }}
146{{- if .Values.global.aafEnabled }}
147 - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }}
148{{- end }}
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400149 volumeMounts:
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200150{{ include "common.certInitializer.volumeMount" . | indent 10 }}
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400151 - mountPath: {{ .Values.persistence.mdsalPath }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100152 name: {{ include "common.fullname" . }}-data
jmac065e2ce2018-03-29 01:18:02 +0000153 containers:
154 - name: {{ include "common.name" . }}
BorislavGdf11cd52018-05-06 12:55:20 +0000155 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
jmac065e2ce2018-03-29 01:18:02 +0000156 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
Alexander Dehn9b797d62020-04-21 09:53:50 +0000157 {{- if not .Values.config.sdnr.enabled }}
jmac065e2ce2018-03-29 01:18:02 +0000158 command: ["/bin/bash"]
Dan Timoney830b85f2020-05-27 16:00:05 -0400159 args: ["-c", "/opt/onap/sdnc/bin/startODL.sh"]
Alexander Dehn9b797d62020-04-21 09:53:50 +0000160 {{ else }}
161 command: ["/bin/bash"]
162 args: ["-c", "{{ .Values.config.binDir }}/startODL.oom.sh"]
163 {{ end }}
jmac065e2ce2018-03-29 01:18:02 +0000164 ports:
165 - containerPort: {{ .Values.service.internalPort }}
166 - containerPort: {{ .Values.service.internalPort2 }}
167 - containerPort: {{ .Values.service.internalPort3 }}
168 - containerPort: {{ .Values.service.clusterPort }}
169 readinessProbe:
170 tcpSocket:
171 port: {{ .Values.service.internalPort }}
172 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
173 periodSeconds: {{ .Values.readiness.periodSeconds }}
174 env:
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100175 - name: MYSQL_ROOT_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100176 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100177 - name: ODL_ADMIN_USERNAME
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100178 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100179 - name: ODL_ADMIN_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100180 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100181 - name: SDNC_DB_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100182 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100183 - name: SDNC_DB_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100184 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100185 - name: SDNC_CONFIG_DIR
186 value: "{{ .Values.config.configDir }}"
187 - name: ENABLE_ODL_CLUSTER
188 value: "{{ .Values.config.enableClustering }}"
189 - name: MY_ODL_CLUSTER
190 value: "{{ .Values.config.myODLCluster }}"
191 - name: PEER_ODL_CLUSTER
192 value: "{{ .Values.config.peerODLCluster }}"
193 - name: IS_PRIMARY_CLUSTER
194 value: "{{ .Values.config.isPrimaryCluster }}"
195 - name: GEO_ENABLED
196 value: "{{ .Values.config.geoEnabled}}"
197 - name: SDNC_AAF_ENABLED
198 value: "{{ .Values.global.aafEnabled}}"
199 - name: SDNC_REPLICAS
200 value: "{{ .Values.replicaCount }}"
201 - name: MYSQL_HOST
202 value: {{ include "common.mariadbService" . }}
203 - name: JAVA_HOME
204 value: "{{ .Values.config.javaHome}}"
Sylvain Desbureauxbcf72512020-07-22 10:45:18 +0200205 - name: KARAF_CONSOLE_LOG_LEVEL
206 value: "{{ include "common.log.level" . }}"
Alexander Dehn9b797d62020-04-21 09:53:50 +0000207 - name: SDNRWT
208 value: "{{ .Values.config.sdnr.enabled | default "false"}}"
209 {{- if eq .Values.config.sdnr.mode "web" }}
210 - name: SDNRDM
211 value: "true"
212 {{- end }}
213 - name: SDNRONLY
214 value: "{{ .Values.config.sdnr.sdnronly | default "false" }}"
215 - name: SDNRDBURL
216 {{- $prefix := ternary "https" "http" .Values.global.aafEnabled}}
217 value: "{{$prefix}}://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}"
218 {{- if .Values.config.sdnr.sdnrdbTrustAllCerts }}
219 - name: SDNRDBTRUSTALLCERTS
220 value: "true"
221 {{ end }}
222
jmac065e2ce2018-03-29 01:18:02 +0000223 volumeMounts:
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200224{{ include "common.certInitializer.volumeMount" . | indent 10 }}
jmac065e2ce2018-03-29 01:18:02 +0000225 - mountPath: /etc/localtime
226 name: localtime
227 readOnly: true
228 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
229 name: sdnc-logging-cfg-config
230 subPath: org.ops4j.pax.logging.cfg
jmaca68f4cb2018-05-10 22:44:19 +0000231 - mountPath: {{ .Values.config.binDir }}/startODL.sh
232 name: bin
jmac065e2ce2018-03-29 01:18:02 +0000233 subPath: startODL.sh
Alexander Dehn5c1105e2020-09-14 20:55:56 +0000234 - mountPath: {{ .Values.config.binDir }}/startODL.oom.sh
235 name: bin
236 subPath: startODL.oom.sh
jmaca68f4cb2018-05-10 22:44:19 +0000237 - mountPath: {{ .Values.config.binDir }}/installSdncDb.sh
238 name: bin
jmac065e2ce2018-03-29 01:18:02 +0000239 subPath: installSdncDb.sh
Konrad Bańka5ea1db32020-04-06 14:32:46 +0200240 - mountPath: {{ .Values.config.ccsdkConfigDir }}/aaiclient.properties
241 name: properties
242 subPath: aaiclient.properties
jmaca68f4cb2018-05-10 22:44:19 +0000243 - mountPath: {{ .Values.config.configDir }}/aaiclient.properties
244 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000245 subPath: aaiclient.properties
jmaca68f4cb2018-05-10 22:44:19 +0000246 - mountPath: {{ .Values.config.configDir }}/dblib.properties
247 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000248 subPath: dblib.properties
jmac7c434672018-05-11 20:14:17 +0000249 - mountPath: {{ .Values.config.configDir }}/lcm-dg.properties
250 name: properties
251 subPath: lcm-dg.properties
jmaca68f4cb2018-05-10 22:44:19 +0000252 - mountPath: {{ .Values.config.configDir }}/svclogic.properties
253 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000254 subPath: svclogic.properties
255 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
jmaca68f4cb2018-05-10 22:44:19 +0000256 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000257 subPath: svclogic.properties
Alexis de Talhouët43c67e02018-09-20 16:49:16 -0400258 - mountPath: {{ .Values.config.configDir }}/netbox.properties
259 name: properties
260 subPath: netbox.properties
261 - mountPath: {{ .Values.config.configDir }}/blueprints-processor-adaptor.properties
262 name: properties
263 subPath: blueprints-processor-adaptor.properties
jmac8d6dc962018-04-26 14:26:55 +0000264 - mountPath: {{ .Values.persistence.mdsalPath }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100265 name: {{ include "common.fullname" . }}-data
jmac065e2ce2018-03-29 01:18:02 +0000266 - mountPath: /var/log/onap
267 name: logs
Timoney, Dan (dt5972)58774772019-08-21 16:50:54 -0400268 - mountPath: {{ .Values.config.odl.salConfigDir }}/{{ .Values.config.odl.salConfigVersion}}/sal-clustering-config-{{ .Values.config.odl.salConfigVersion}}-akkaconf.xml
269 name: properties
270 subPath: akka.conf
271 - mountPath: {{ .Values.config.odl.etcDir }}/org.opendaylight.controller.cluster.datastore.cfg
272 name: properties
273 subPath: org.opendaylight.controller.cluster.datastore.cfg
274 - mountPath: {{ .Values.config.odl.binDir }}/setenv
275 name: properties
276 subPath: setenv
Alexander Dehn9b797d62020-04-21 09:53:50 +0000277 - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-registrar.properties
278 name: properties
279 subPath: mountpoint-registrar.properties
280 - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-state-provider.properties
281 name: properties
282 subPath: mountpoint-state-provider.properties
egernug27578332020-03-26 10:27:55 +0000283 - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
284 name: certs
jmac065e2ce2018-03-29 01:18:02 +0000285 resources:
Mandeep Khinda5e3f36a2018-09-24 15:25:42 +0000286{{ include "common.resources" . | indent 12 }}
jmac065e2ce2018-03-29 01:18:02 +0000287 {{- if .Values.nodeSelector }}
288 nodeSelector:
289{{ toYaml .Values.nodeSelector | indent 10 }}
290 {{- end -}}
291 {{- if .Values.affinity }}
292 affinity:
293{{ toYaml .Values.affinity | indent 10 }}
294 {{- end }}
295
296 # side car containers
297 - name: filebeat-onap
298 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
299 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
300 volumeMounts:
301 - mountPath: /usr/share/filebeat/filebeat.yml
302 name: filebeat-conf
303 subPath: filebeat.yml
304 - mountPath: /var/log/onap
305 name: logs
306 - mountPath: /usr/share/filebeat/data
307 name: data-filebeat
jmac8d6dc962018-04-26 14:26:55 +0000308 imagePullSecrets:
309 - name: "{{ include "common.namespace" . }}-docker-registry-key"
jmac065e2ce2018-03-29 01:18:02 +0000310 volumes:
311 - name: localtime
312 hostPath:
313 path: /etc/localtime
314 - name: logs
315 emptyDir: {}
316 - name: data-filebeat
317 emptyDir: {}
318 - name: filebeat-conf
319 configMap:
320 name: {{ include "common.fullname" . }}-filebeat-configmap
321 - name: sdnc-logging-cfg-config
322 configMap:
323 name: {{ include "common.fullname" . }}-log-configmap
jmaca68f4cb2018-05-10 22:44:19 +0000324 - name: bin
jmac065e2ce2018-03-29 01:18:02 +0000325 configMap:
jmaca68f4cb2018-05-10 22:44:19 +0000326 name: {{ include "common.fullname" . }}-bin
327 defaultMode: 0755
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100328 - name: config-input
jmac065e2ce2018-03-29 01:18:02 +0000329 configMap:
jmaca68f4cb2018-05-10 22:44:19 +0000330 name: {{ include "common.fullname" . }}-properties
331 defaultMode: 0644
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100332 - name: properties
333 emptyDir:
334 medium: Memory
egernug27578332020-03-26 10:27:55 +0000335 - name: certs
336 emptyDir:
337 medium: Memory
338 - name: certservice-tls-volume
339 secret:
340 secretName: {{ .Values.global.platform.certServiceClient.secret.name }}
jmac8d6dc962018-04-26 14:26:55 +0000341 {{ if not .Values.persistence.enabled }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100342 - name: {{ include "common.fullname" . }}-data
jmac8d6dc962018-04-26 14:26:55 +0000343 emptyDir: {}
344 {{ else }}
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200345{{ include "common.certInitializer.volumes" . | nindent 8 }}
jmac8d6dc962018-04-26 14:26:55 +0000346 volumeClaimTemplates:
347 - metadata:
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100348 name: {{ include "common.fullname" . }}-data
jmac8d6dc962018-04-26 14:26:55 +0000349 labels:
350 name: {{ include "common.fullname" . }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100351 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +0100352 release: "{{ include "common.release" . }}"
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100353 heritage: "{{ .Release.Service }}"
jmac8d6dc962018-04-26 14:26:55 +0000354 spec:
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100355 accessModes:
356 - {{ .Values.persistence.accessMode }}
357 storageClassName: {{ include "common.storageClass" . }}
jmac8d6dc962018-04-26 14:26:55 +0000358 resources:
359 requests:
360 storage: {{ .Values.persistence.size }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100361 {{- end }}