[bitnami/mariadb-galera] Fix bootstraping issues (#3214)

* [bitnami/mariadb-galera] Fix bootstraping issues

* Uncomment forcesafetobootstrap
This commit is contained in:
Rafael Ríos Saavedra
2020-07-24 17:12:40 +02:00
committed by GitHub
parent 818a1e6700
commit d2cbd6c88f
5 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: mariadb-galera
version: 4.1.0
version: 4.2.0
appVersion: 10.5.4
description: MariaDB Galera is a multi-master database cluster solution for synchronous replication and high availability.
keywords:
+1 -1
View File
@@ -96,7 +96,7 @@ The following table lists the configurable parameters of the MariaDB Galera char
| `db.name` | Name for new database to create | `my_database` |
| `db.forcePassword` | Force users to specify a password | `false` |
| `galera.name` | Galera cluster name | `galera` |
| `galera.bootstrap.bootstrapFromNode` | Node number to bootstrap first | `0` |
| `galera.bootstrap.bootstrapFromNode` | Node number to bootstrap first | nil |
| `galera.bootstrap.forceSafeToBootstrap` | Force `safe_to_bootstrap: 1` in `grastate.dat` | `false` |
| `galera.mariabackup.user` | Galera mariabackup user | `mariabackup` |
| `galera.mariabackup.password` | Galera mariabackup password | _random 10 character alphanumeric string_ |
@@ -54,6 +54,7 @@ spec:
- bash
- -ec
- |
{{- if (not (empty (.Values.galera.bootstrap.bootstrapFromNode | quote)))}}
{{- $fullname := include "mariadb-galera.fullname" . }}
{{- $bootstrapFromNode := int .Values.galera.bootstrap.bootstrapFromNode }}
# Bootstrap from the indicated node
@@ -62,6 +63,7 @@ spec:
export MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes
export MARIADB_GALERA_FORCE_SAFETOBOOTSTRAP={{ ternary "yes" "no" .Values.galera.bootstrap.forceSafeToBootstrap }}
fi
{{- end }}
exec /opt/bitnami/scripts/mariadb-galera/entrypoint.sh /opt/bitnami/scripts/mariadb-galera/run.sh
env:
- name: MY_POD_NAME
@@ -182,11 +182,12 @@ galera:
name: galera
## Bootstraping options
## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#bootstraping
bootstrap:
## Node to bootstrap from, you will need to change this parameter incase you want to bootstrap from other node
##
bootstrapFromNode: 0
## Force bootstrap
bootstrapFromNode:
## Force safe_to_bootstrap in grastate.date file.
## This will set safe_to_bootstrap=1 in the node indicated by bootstrapFromNode.
forceSafeToBootstrap: false
+2 -2
View File
@@ -185,8 +185,8 @@ galera:
bootstrap:
## Node to bootstrap from, you will need to change this parameter incase you want to bootstrap from other node
##
bootstrapFromNode: 0
## Force bootstrap
bootstrapFromNode:
## Force safe_to_bootstrap in grastate.date file.
## This will set safe_to_bootstrap=1 in the node indicated by bootstrapFromNode.
forceSafeToBootstrap: false