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 }}
29 #dd775k: This container checks that all galera instances are up before initializing it.
30 - name: vid-init-galera-readiness
31 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 # - "sleep 1000000000m"
42 - {{ include "common.fullname" . }}-mariadb-galera-0
45 value: {{ include "common.namespace" . }}
50 - name: vid-config-galeradb
51 image: {{ .Values.mariadb_image }}
52 imagePullPolicy: "{{ .Values.pullPolicy }}"
57 mountPath: /dbcmd-config
62 - /dbcmd-config/db_cmd.sh
64 - name: MYSQL_PASSWORD
65 value: "{{ .Values.config.vidmysqlpassword }}"
68 # name: {{ template "common.fullname" . }}
71 value: "{{ .Values.config.vidmysqlhost }}"
75 name: {{ include "common.fullname" . }}-galera-sql-configmap
78 name: {{ include "common.fullname" . }}-dbcmd-configmap
81 name: {{ include "common.fullname" . }}-cluster-ready-configmap