[COMMON][MARIADB] Fix backup job 08/127508/4
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Fri, 4 Mar 2022 20:58:31 +0000 (15:58 -0500)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 18 Mar 2022 16:11:27 +0000 (16:11 +0000)
commitcabbb6f88df4e74f599920ebe2e7b0ae9f6ee2c8
treebdde2c4a96a77f39d3e18b7742c19afab4615912
parentdb93f8696ea251334f2b2a389843cec82a130e75
[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
kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml
kubernetes/common/mariadb-galera/values.yaml