diff options
author | Jozsef Csongvai <jozsef.csongvai@bell.ca> | 2022-03-04 15:58:31 -0500 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2022-03-18 16:11:27 +0000 |
commit | cabbb6f88df4e74f599920ebe2e7b0ae9f6ee2c8 (patch) | |
tree | bdde2c4a96a77f39d3e18b7742c19afab4615912 /kubernetes/common/mariadb-galera/values.yaml | |
parent | db93f8696ea251334f2b2a389843cec82a130e75 (diff) |
[COMMON][MARIADB] Fix backup job
The backup job stopped working after upgrade to bitnami images.
Mariabackup was not designed to work remotely, it is supposed to run
on the database server. Because of this we need to mount the data pvc
into the backup job pod. It will however connect to the database daemon
using a hostname, so we need to connect to the first replica in the
cluster. Also had to set readOnlyRootFilesystem=false and add emptyDir
volumes to solve various permission issues.
Issue-ID: OOM-2932
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I776903f9ec541f8dc5818b2ba4c1292226ec2bc6
Diffstat (limited to 'kubernetes/common/mariadb-galera/values.yaml')
-rw-r--r-- | kubernetes/common/mariadb-galera/values.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kubernetes/common/mariadb-galera/values.yaml b/kubernetes/common/mariadb-galera/values.yaml index 9f7c882134..d65c4f7943 100644 --- a/kubernetes/common/mariadb-galera/values.yaml +++ b/kubernetes/common/mariadb-galera/values.yaml @@ -174,6 +174,8 @@ galera: # password: # externalSecret: +## The backup job will mount the mariadb data pvc in order to run mariabackup. +## For this reason the db data pvc needs to have accessMode: ReadWriteMany. backup: enabled: false cron: "00 00 * * *" @@ -458,6 +460,7 @@ persistence: ## annotations: ## Persistent Volume Access Mode + ## Use ReadWriteMany if backup is enabled, see backup section. ## accessMode: ReadWriteOnce ## Persistent Volume size |