2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2018 Ericsson. All rights reserved.
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
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19 # @author: gareth.roper@ericsson.com
24 name: {{ include "common.fullname" . }}
25 namespace: {{ include "common.namespace" . }}
27 app: {{ include "common.fullname" . }}
28 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
29 release: {{ include "common.release" . }}
33 app: {{ include "common.name" . }}
34 replicas: {{ index .Values.replicaCount }}
35 minReadySeconds: {{ index .Values.minReadySeconds }}
37 type: {{ index .Values.updateStrategy.type }}
39 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
40 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
44 app: {{ include "common.name" . }}
45 release: {{ include "common.release" . }}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /app/logs"]
57 - name: {{ include "common.name" . }}
58 image: {{ include "common.repository" . }}/{{ .Values.image }}
59 resources: {{ include "common.resources" . | nindent 12 }}
64 name: {{ include "common.release" . }}-so-db-secrets
65 key: mariadb.readwrite.host
69 name: {{ include "common.release" . }}-so-db-secrets
70 key: mariadb.readwrite.port
72 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
74 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
75 - name: DB_ADMIN_USERNAME
76 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }}
77 - name: DB_ADMIN_PASSWORD
78 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }}
81 name: {{ include "common.fullname" . }}-configmap
82 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
87 mountPath: /app/config
91 port: {{ index .Values.readinessProbe.port }}
92 initialDelaySeconds: {{ index .Values.readinessProbe.initialDelaySeconds}}
93 periodSeconds: {{ index .Values.readinessProbe.periodSeconds}}
96 port: {{ index .Values.livenessProbe.port }}
97 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
98 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
99 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
100 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
103 - containerPort: {{ index .Values.containerPort }}
104 name: {{ .Values.service.portName }}
111 name: {{ include "common.fullname" . }}-app-configmap
113 - name: "{{ include "common.namespace" . }}-docker-registry-key"