1 # Copyright © 2018 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.release" . }}-galera-config
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}-job
22 release: {{ include "common.release" . }}
27 app: {{ include "common.name" . }}-job
28 release: {{ include "common.release" . }}
31 #This container checks that all galera instances are up before initializing it.
32 - name: {{ include "common.name" . }}-readiness
33 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
34 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
38 - {{ index .Values "mariadb-galera" "service" "name" }}
44 fieldPath: metadata.namespace
46 - name: {{ include "common.release" . }}-galera-config
47 image: {{ .Values.mariadb_image }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - mountPath: /dbcmd-config/db.sh
51 name: {{ include "common.fullname" . }}-config
59 - name: MYSQL_ROOT_PASSWORD
62 name: {{ template "common.fullname" . }}-secret
65 value: "{{ index .Values "mariadb-galera" "service" "name" }}"
67 value: "{{ index .Values "mariadb-galera" "config" "userName" }}"
69 value: "{{ index .Values "mariadb-galera" "service" "internalPort" }}"
72 - name: {{ include "common.fullname" . }}-config
74 name: {{ include "common.fullname" . }}-db-configmap