1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2018 Ericsson. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18 # @author: gareth.roper@ericsson.com
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.fullname" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ include "common.release" . }}
31 app: {{ include "common.name" . }}
32 replicas: {{ index .Values.replicaCount }}
33 minReadySeconds: {{ index .Values.minReadySeconds }}
35 type: {{ index .Values.updateStrategy.type }}
37 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
38 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
42 app: {{ include "common.name" . }}
43 release: {{ include "common.release" . }}
45 initContainers: {{ include "so.certificate.container_importer" . | nindent 6 }}
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /app/logs"]
55 - name: {{ include "common.name" . }}
56 image: {{ include "common.repository" . }}/{{ .Values.image }}
58 {{ include "common.resources" . | indent 12 }}
63 name: {{ include "common.release" . }}-so-db-secrets
64 key: mariadb.readwrite.host
68 name: {{ include "common.release" . }}-so-db-secrets
69 key: mariadb.readwrite.port
71 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
73 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
74 - name: DB_ADMIN_USERNAME
75 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }}
76 - name: DB_ADMIN_PASSWORD
77 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }}
80 name: {{ include "common.fullname" . }}-configmap
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 volumeMounts: {{ include "so.certificate.volume-mounts" . | nindent 8 }}
86 mountPath: /app/config
90 port: {{ index .Values.readinessProbe.port }}
91 initialDelaySeconds: {{ index .Values.readinessProbe.initialDelaySeconds}}
92 periodSeconds: {{ index .Values.readinessProbe.periodSeconds}}
95 port: {{ index .Values.livenessProbe.port }}
96 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
97 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
98 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
99 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
102 - containerPort: {{ index .Values.containerPort }}
103 name: {{ .Values.service.portName }}
105 volumes: {{ include "so.certificate.volumes" . | nindent 6 }}
110 name: {{ include "common.fullname" . }}-app-configmap
112 - name: "{{ include "common.namespace" . }}-docker-registry-key"