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: vid-config-galera
19 namespace: {{ include "common.namespace" . }}
21 app: vid-config-galera
22 release: {{ .Release.Name }}
27 release: {{ .Release.Name }}
31 #This container checks that all galera instances are up before initializing it.
32 - name: vid-init-galera-readiness
33 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
34 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 {{- $fullname := include "common.fullname" . -}}
38 {{- range $i,$t := until (int .Values.vid_mariadb_galera.replicaCount)}}
40 - {{ $fullname }}-mariadb-galera-{{$i}}
47 fieldPath: metadata.namespace
49 - name: vid-config-galeradb
50 image: {{ .Values.mariadb_image }}
51 imagePullPolicy: "{{ .Values.pullPolicy }}"
53 - mountPath: /dbcmd-config/db_cmd.sh
54 name: {{ include "common.fullname" . }}-config
56 - mountPath: /db-config/vid-pre-init.sql
57 name: {{ include "common.fullname" . }}-config
58 subPath: vid-pre-init.sql
63 - /dbcmd-config/db_cmd.sh
65 - name: MYSQL_PASSWORD
66 value: "{{ .Values.config.vidmysqlpassword }}"
68 value: "{{ .Values.config.vidmysqlhost }}"
70 value: "{{ .Values.config.vidmysqluser }}"
72 value: "{{ .Values.config.vidmysqlport }}"
75 - name: {{ include "common.fullname" . }}-config
77 name: {{ include "common.fullname" . }}
81 - key: vid-pre-init.sql
82 path: vid-pre-init.sql