mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/mariadb-galera] Fix bootstraping issues (#3214)
* [bitnami/mariadb-galera] Fix bootstraping issues * Uncomment forcesafetobootstrap
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user