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
19 apiVersion: extensions/v1beta1
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.fullname" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ .Release.Name }}
29 replicas: {{ index .Values.replicaCount }}
30 minReadySeconds: {{ index .Values.minReadySeconds }}
32 type: {{ index .Values.updateStrategy.type }}
34 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
35 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
39 app: {{ include "common.name" . }}
40 release: {{ .Release.Name }}
48 imagePullPolicy: {{ index .Values.pullPolicy }}
49 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /app/logs"]
52 - name: {{ include "common.name" . }}
53 image: {{ include "common.repository" . }}/{{ .Values.image }}
55 {{ include "common.resources" . | indent 12 }}
60 name: {{ .Release.Name}}-so-db-secrets
61 key: mariadb.readwrite.host
65 name: {{ .Release.Name}}-so-db-secrets
66 key: mariadb.readwrite.port
70 name: {{ .Release.Name}}-so-db-secrets
71 key: mariadb.readwrite.rolename
75 name: {{ .Release.Name}}-so-db-secrets
76 key: mariadb.readwrite.password
77 - name: DB_ADMIN_USERNAME
80 name: {{ .Release.Name}}-so-db-secrets
81 key: mariadb.admin.rolename
82 - name: DB_ADMIN_PASSWORD
85 name: {{ .Release.Name}}-so-db-secrets
86 key: mariadb.admin.password
87 - name: CADI_KEYSTORE_PASSWORD
90 name: {{ .Release.Name}}-so-ssl-pwd-secret
91 key: cadi_keystore_password
92 - name: CADI_TRUSTSTORE_PASSWORD
95 name: {{ .Release.Name}}-so-ssl-pwd-secret
96 key: cadi_truststore_password
97 - name: MSO_KEYSTORE_PASSWORD
100 name: {{ .Release.Name}}-so-ssl-client-secret
101 key: keystore_password
102 - name: MSO_TRUSTSTORE_PASSWORD
105 name: {{ .Release.Name}}-so-ssl-client-secret
106 key: truststore_password
109 name: {{ include "common.fullname" . }}-configmap
110 imagePullPolicy: {{ index .Values "global" "pullPolicy" }}
115 mountPath: /app/certs/
118 mountPath: /app/config
122 port: {{ index .Values.readinessProbe.port }}
123 initialDelaySeconds: {{ index .Values.readinessProbe.initialDelaySeconds}}
124 periodSeconds: {{ index .Values.readinessProbe.periodSeconds}}
127 port: {{ index .Values.livenessProbe.port }}
128 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
129 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
130 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
131 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
134 - containerPort: {{ index .Values.containerPort }}
135 name: {{ .Values.service.portName }}
142 secretName: {{ .Release.Name}}-so-ssl-secret
145 name: {{ include "common.fullname" . }}-app-configmap
147 - name: "{{ include "common.namespace" . }}-docker-registry-key"