[COMMON][MARIADB] Set init wait right variable 63/116563/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 4 Jan 2021 13:45:11 +0000 (14:45 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 4 Jan 2021 13:49:28 +0000 (14:49 +0100)
Bitnami mariadb-galera image has a special environment variable that
allows to wait few seconds for mariadb to be fully initialized.
This is especially important when a lot of pods are created in parallel,
like in OOM.
Unfortunately, the variable name used wasn't the good one.
This patch rectifies that

Issue-ID: OOM-1720
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I2f41ec734a45197c40d5adfa9e214ba5e335f44d

kubernetes/common/mariadb-galera/templates/statefulset.yaml

index 0dcb8e3..caa5062 100644 (file)
@@ -94,7 +94,7 @@ spec:
                   fieldPath: metadata.name
             - name: BITNAMI_DEBUG
               value: {{ ternary "true" "false" .Values.debug | quote }}
-            - name: DB_INIT_SLEEP_TIME
+            - name: MARIADB_INIT_SLEEP_TIME
               value: {{ .Values.init_sleep_time | quote }}
             - name: MARIADB_GALERA_CLUSTER_NAME
               value: {{ .Values.galera.name | quote }}