2 # Copyright © 2018 AT&T USA
3 # Copyright © 2024 Deutsche Telekom Intellectual Property. All rights reserved.
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
23 minReadySeconds: {{ index .Values.minReadySeconds }}
25 type: {{ index .Values.updateStrategy.type }}
27 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
28 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
30 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
33 {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }}
35 - name: {{ include "common.name" . }}
36 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
37 resources: {{ include "common.resources" . | nindent 10 }}
40 value: {{ include "common.mariadbService" . }}
42 value: {{ include "common.mariadbPort" . | quote }}
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
47 - name: DB_ADMIN_USERNAME
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }}
49 - name: DB_ADMIN_PASSWORD
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }}
54 name: {{ include "common.name" . }}-ku
58 name: {{ include "common.fullname" . }}-configmap
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 mountPath: /app/config
66 - name: {{ include "common.fullname" . }}-logs
67 mountPath: {{ .Values.log.path }}
68 {{ include "so.helpers.livenessProbe" .| indent 8 }}
69 ports: {{ include "common.containerPorts" . | nindent 10 }}
70 # Filebeat sidecar container
71 {{ include "common.log.sidecar" . | nindent 6 }}
72 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
78 name: {{ include "common.fullname" . }}-app-configmap
79 - name: {{ include "common.fullname" . }}-log-conf
81 name: {{ include "common.fullname" . }}-log
82 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
83 - name: {{ include "common.fullname" . }}-logs
85 {{- include "common.imagePullSecrets" . | nindent 6 }}