blob: 137d94fab23c7daf0946666ecb61a9c8ac371770 [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 }}
Alexander Dehn2ae954d2020-10-20 15:57:42 +000065 - name: ODL_ADMIN_USERNAME
66 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
67 - name: ODL_ADMIN_PASSWORD
68 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
69
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010070 volumeMounts:
71 - mountPath: /config-input
72 name: config-input
73 - mountPath: /config
74 name: properties
75 image: "{{ .Values.global.envsubstImage }}"
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 name: {{ include "common.name" . }}-update-config
Alexander Dehn9b797d62020-04-21 09:53:50 +000078 {{ if .Values.dgbuilder.enabled -}}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010079 - command:
Sylvain Desbureaux1694e1d2020-08-21 09:58:25 +020080 - /app/ready.py
jmac065e2ce2018-03-29 01:18:02 +000081 args:
Alexander Dehn9b797d62020-04-21 09:53:50 +000082 {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}}
jmac065e2ce2018-03-29 01:18:02 +000083 - --container-name
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +010084 - {{ include "common.mariadbService" . }}
Alexander Dehn9b797d62020-04-21 09:53:50 +000085 {{ end -}}
86 {{ if .Values.config.sdnr.enabled -}}
87 - --container-name
88 - {{ include "common.name" . }}-sdnrdb-init-job
89 {{ end -}}
jmac065e2ce2018-03-29 01:18:02 +000090 env:
91 - name: NAMESPACE
92 valueFrom:
93 fieldRef:
94 apiVersion: v1
95 fieldPath: metadata.namespace
Sylvain Desbureaux1694e1d2020-08-21 09:58:25 +020096 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
jmac065e2ce2018-03-29 01:18:02 +000097 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +010098 name: {{ include "common.name" . }}-readiness
Alexander Dehn9b797d62020-04-21 09:53:50 +000099 {{ end -}}
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200100{{ include "common.certInitializer.initContainer" . | indent 6 }}
101
egernug27578332020-03-26 10:27:55 +0000102 {{ if .Values.global.cmpv2Enabled }}
103 - name: certs-init
104 image: "{{ .Values.global.repository }}/{{ .Values.global.platform.certServiceClient.image }}"
105 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
106 env:
107 - name: REQUEST_URL
108 value: {{ .Values.global.platform.certServiceClient.envVariables.requestURL }}
109 - name: REQUEST_TIMEOUT
110 value: "30000"
111 - name: OUTPUT_PATH
112 value: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
113 - name: CA_NAME
114 value: {{ .Values.global.platform.certServiceClient.envVariables.caName }}
115 - name: COMMON_NAME
116 value: {{ .Values.global.platform.certServiceClient.envVariables.common_name }}
117 - name: ORGANIZATION
118 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Organization }}
119 - name: ORGANIZATION_UNIT
120 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2OrganizationalUnit }}
121 - name: LOCATION
122 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Location }}
123 - name: STATE
124 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2State }}
125 - name: COUNTRY
126 value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Country }}
127 - name: KEYSTORE_PATH
128 value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePath }}
129 - name: KEYSTORE_PASSWORD
130 value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePassword }}
131 - name: TRUSTSTORE_PATH
132 value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePath }}
133 - name: TRUSTSTORE_PASSWORD
134 value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePassword }}
135 terminationMessagePath: /dev/termination-log
136 terminationMessagePolicy: File
137 volumeMounts:
138 - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
139 name: certs
140 - mountPath: {{ .Values.global.platform.certServiceClient.secret.mountPath }}
141 name: certservice-tls-volume
142 {{ end }}
143
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400144 - name: {{ include "common.name" . }}-chown
Alexander Dehn1373c9c2020-09-02 09:01:15 +0000145 image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
Lucjan Bryndza5c63e932020-06-25 08:43:23 +0000146 command:
147 - sh
148 args:
149 - -c
150 - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }}
151{{- if .Values.global.aafEnabled }}
152 - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }}
153{{- end }}
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400154 volumeMounts:
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200155{{ include "common.certInitializer.volumeMount" . | indent 10 }}
Timoney, Dan (dt5972)ba4d2eb2019-05-07 13:32:42 -0400156 - mountPath: {{ .Values.persistence.mdsalPath }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100157 name: {{ include "common.fullname" . }}-data
jmac065e2ce2018-03-29 01:18:02 +0000158 containers:
159 - name: {{ include "common.name" . }}
BorislavGdf11cd52018-05-06 12:55:20 +0000160 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
jmac065e2ce2018-03-29 01:18:02 +0000161 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
Alexander Dehn9b797d62020-04-21 09:53:50 +0000162 {{- if not .Values.config.sdnr.enabled }}
jmac065e2ce2018-03-29 01:18:02 +0000163 command: ["/bin/bash"]
Dan Timoney830b85f2020-05-27 16:00:05 -0400164 args: ["-c", "/opt/onap/sdnc/bin/startODL.sh"]
Alexander Dehn9b797d62020-04-21 09:53:50 +0000165 {{ else }}
166 command: ["/bin/bash"]
167 args: ["-c", "{{ .Values.config.binDir }}/startODL.oom.sh"]
168 {{ end }}
jmac065e2ce2018-03-29 01:18:02 +0000169 ports:
170 - containerPort: {{ .Values.service.internalPort }}
171 - containerPort: {{ .Values.service.internalPort2 }}
172 - containerPort: {{ .Values.service.internalPort3 }}
173 - containerPort: {{ .Values.service.clusterPort }}
174 readinessProbe:
175 tcpSocket:
176 port: {{ .Values.service.internalPort }}
177 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
178 periodSeconds: {{ .Values.readiness.periodSeconds }}
179 env:
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100180 - name: MYSQL_ROOT_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100181 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100182 - name: ODL_ADMIN_USERNAME
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100183 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100184 - name: ODL_ADMIN_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100185 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100186 - name: SDNC_DB_USER
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100187 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100188 - name: SDNC_DB_PASSWORD
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +0100189 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }}
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100190 - name: SDNC_CONFIG_DIR
191 value: "{{ .Values.config.configDir }}"
192 - name: ENABLE_ODL_CLUSTER
193 value: "{{ .Values.config.enableClustering }}"
194 - name: MY_ODL_CLUSTER
195 value: "{{ .Values.config.myODLCluster }}"
196 - name: PEER_ODL_CLUSTER
197 value: "{{ .Values.config.peerODLCluster }}"
198 - name: IS_PRIMARY_CLUSTER
199 value: "{{ .Values.config.isPrimaryCluster }}"
200 - name: GEO_ENABLED
201 value: "{{ .Values.config.geoEnabled}}"
202 - name: SDNC_AAF_ENABLED
203 value: "{{ .Values.global.aafEnabled}}"
204 - name: SDNC_REPLICAS
205 value: "{{ .Values.replicaCount }}"
206 - name: MYSQL_HOST
207 value: {{ include "common.mariadbService" . }}
208 - name: JAVA_HOME
209 value: "{{ .Values.config.javaHome}}"
Dan Timoneya98765b2020-09-14 11:57:55 -0400210 - name: JAVA_OPTS
211 value: "-Xms{{.Values.config.odl.javaOptions.minMemory}} -Xmx{{.Values.config.odl.javaOptions.maxMemory}}"
Sylvain Desbureauxbcf72512020-07-22 10:45:18 +0200212 - name: KARAF_CONSOLE_LOG_LEVEL
213 value: "{{ include "common.log.level" . }}"
Alexander Dehn9b797d62020-04-21 09:53:50 +0000214 - name: SDNRWT
215 value: "{{ .Values.config.sdnr.enabled | default "false"}}"
216 {{- if eq .Values.config.sdnr.mode "web" }}
217 - name: SDNRDM
218 value: "true"
219 {{- end }}
220 - name: SDNRONLY
221 value: "{{ .Values.config.sdnr.sdnronly | default "false" }}"
222 - name: SDNRDBURL
223 {{- $prefix := ternary "https" "http" .Values.global.aafEnabled}}
224 value: "{{$prefix}}://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}"
225 {{- if .Values.config.sdnr.sdnrdbTrustAllCerts }}
226 - name: SDNRDBTRUSTALLCERTS
227 value: "true"
228 {{ end }}
229
jmac065e2ce2018-03-29 01:18:02 +0000230 volumeMounts:
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200231{{ include "common.certInitializer.volumeMount" . | indent 10 }}
jmac065e2ce2018-03-29 01:18:02 +0000232 - mountPath: /etc/localtime
233 name: localtime
234 readOnly: true
235 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
236 name: sdnc-logging-cfg-config
237 subPath: org.ops4j.pax.logging.cfg
jmaca68f4cb2018-05-10 22:44:19 +0000238 - mountPath: {{ .Values.config.binDir }}/startODL.sh
239 name: bin
jmac065e2ce2018-03-29 01:18:02 +0000240 subPath: startODL.sh
Alexander Dehn5c1105e2020-09-14 20:55:56 +0000241 - mountPath: {{ .Values.config.binDir }}/startODL.oom.sh
242 name: bin
243 subPath: startODL.oom.sh
jmaca68f4cb2018-05-10 22:44:19 +0000244 - mountPath: {{ .Values.config.binDir }}/installSdncDb.sh
245 name: bin
jmac065e2ce2018-03-29 01:18:02 +0000246 subPath: installSdncDb.sh
Konrad Bańka5ea1db32020-04-06 14:32:46 +0200247 - mountPath: {{ .Values.config.ccsdkConfigDir }}/aaiclient.properties
248 name: properties
249 subPath: aaiclient.properties
jmaca68f4cb2018-05-10 22:44:19 +0000250 - mountPath: {{ .Values.config.configDir }}/aaiclient.properties
251 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000252 subPath: aaiclient.properties
jmaca68f4cb2018-05-10 22:44:19 +0000253 - mountPath: {{ .Values.config.configDir }}/dblib.properties
254 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000255 subPath: dblib.properties
jmac7c434672018-05-11 20:14:17 +0000256 - mountPath: {{ .Values.config.configDir }}/lcm-dg.properties
257 name: properties
258 subPath: lcm-dg.properties
jmaca68f4cb2018-05-10 22:44:19 +0000259 - mountPath: {{ .Values.config.configDir }}/svclogic.properties
260 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000261 subPath: svclogic.properties
262 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
jmaca68f4cb2018-05-10 22:44:19 +0000263 name: properties
jmac065e2ce2018-03-29 01:18:02 +0000264 subPath: svclogic.properties
Alexis de Talhouët43c67e02018-09-20 16:49:16 -0400265 - mountPath: {{ .Values.config.configDir }}/netbox.properties
266 name: properties
267 subPath: netbox.properties
268 - mountPath: {{ .Values.config.configDir }}/blueprints-processor-adaptor.properties
269 name: properties
270 subPath: blueprints-processor-adaptor.properties
jmac8d6dc962018-04-26 14:26:55 +0000271 - mountPath: {{ .Values.persistence.mdsalPath }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100272 name: {{ include "common.fullname" . }}-data
jmac065e2ce2018-03-29 01:18:02 +0000273 - mountPath: /var/log/onap
274 name: logs
Timoney, Dan (dt5972)58774772019-08-21 16:50:54 -0400275 - mountPath: {{ .Values.config.odl.salConfigDir }}/{{ .Values.config.odl.salConfigVersion}}/sal-clustering-config-{{ .Values.config.odl.salConfigVersion}}-akkaconf.xml
276 name: properties
277 subPath: akka.conf
278 - mountPath: {{ .Values.config.odl.etcDir }}/org.opendaylight.controller.cluster.datastore.cfg
279 name: properties
280 subPath: org.opendaylight.controller.cluster.datastore.cfg
281 - mountPath: {{ .Values.config.odl.binDir }}/setenv
282 name: properties
283 subPath: setenv
Alexander Dehn9b797d62020-04-21 09:53:50 +0000284 - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-registrar.properties
285 name: properties
286 subPath: mountpoint-registrar.properties
287 - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-state-provider.properties
288 name: properties
289 subPath: mountpoint-state-provider.properties
egernugb8f88072020-10-08 11:05:20 +0100290 {{ if .Values.global.cmpv2Enabled }}
egernug27578332020-03-26 10:27:55 +0000291 - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
292 name: certs
egernugb8f88072020-10-08 11:05:20 +0100293 {{- end }}
jmac065e2ce2018-03-29 01:18:02 +0000294 resources:
Mandeep Khinda5e3f36a2018-09-24 15:25:42 +0000295{{ include "common.resources" . | indent 12 }}
jmac065e2ce2018-03-29 01:18:02 +0000296 {{- if .Values.nodeSelector }}
297 nodeSelector:
298{{ toYaml .Values.nodeSelector | indent 10 }}
299 {{- end -}}
300 {{- if .Values.affinity }}
301 affinity:
302{{ toYaml .Values.affinity | indent 10 }}
303 {{- end }}
304
305 # side car containers
306 - name: filebeat-onap
307 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
308 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
309 volumeMounts:
310 - mountPath: /usr/share/filebeat/filebeat.yml
311 name: filebeat-conf
312 subPath: filebeat.yml
313 - mountPath: /var/log/onap
314 name: logs
315 - mountPath: /usr/share/filebeat/data
316 name: data-filebeat
jmac8d6dc962018-04-26 14:26:55 +0000317 imagePullSecrets:
318 - name: "{{ include "common.namespace" . }}-docker-registry-key"
jmac065e2ce2018-03-29 01:18:02 +0000319 volumes:
320 - name: localtime
321 hostPath:
322 path: /etc/localtime
323 - name: logs
324 emptyDir: {}
325 - name: data-filebeat
326 emptyDir: {}
327 - name: filebeat-conf
328 configMap:
329 name: {{ include "common.fullname" . }}-filebeat-configmap
330 - name: sdnc-logging-cfg-config
331 configMap:
332 name: {{ include "common.fullname" . }}-log-configmap
jmaca68f4cb2018-05-10 22:44:19 +0000333 - name: bin
jmac065e2ce2018-03-29 01:18:02 +0000334 configMap:
jmaca68f4cb2018-05-10 22:44:19 +0000335 name: {{ include "common.fullname" . }}-bin
336 defaultMode: 0755
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100337 - name: config-input
jmac065e2ce2018-03-29 01:18:02 +0000338 configMap:
jmaca68f4cb2018-05-10 22:44:19 +0000339 name: {{ include "common.fullname" . }}-properties
340 defaultMode: 0644
Krzysztof Opasiakcc97c732020-02-25 23:31:20 +0100341 - name: properties
342 emptyDir:
343 medium: Memory
egernugb8f88072020-10-08 11:05:20 +0100344 {{ if .Values.global.cmpv2Enabled }}
egernug27578332020-03-26 10:27:55 +0000345 - name: certs
346 emptyDir:
347 medium: Memory
348 - name: certservice-tls-volume
349 secret:
350 secretName: {{ .Values.global.platform.certServiceClient.secret.name }}
egernugb8f88072020-10-08 11:05:20 +0100351 {{- end }}
jmac8d6dc962018-04-26 14:26:55 +0000352 {{ if not .Values.persistence.enabled }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100353 - name: {{ include "common.fullname" . }}-data
jmac8d6dc962018-04-26 14:26:55 +0000354 emptyDir: {}
355 {{ else }}
Krzysztof Opasiak8ab45472020-05-12 12:53:50 +0200356{{ include "common.certInitializer.volumes" . | nindent 8 }}
jmac8d6dc962018-04-26 14:26:55 +0000357 volumeClaimTemplates:
358 - metadata:
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100359 name: {{ include "common.fullname" . }}-data
jmac8d6dc962018-04-26 14:26:55 +0000360 labels:
361 name: {{ include "common.fullname" . }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100362 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +0100363 release: "{{ include "common.release" . }}"
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100364 heritage: "{{ .Release.Service }}"
jmac8d6dc962018-04-26 14:26:55 +0000365 spec:
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100366 accessModes:
367 - {{ .Values.persistence.accessMode }}
368 storageClassName: {{ include "common.storageClass" . }}
jmac8d6dc962018-04-26 14:26:55 +0000369 resources:
370 requests:
371 storage: {{ .Values.persistence.size }}
Sylvain Desbureaux25e01d52019-12-09 11:06:39 +0100372 {{- end }}