openstack-helm-infra/mariadb/templates
Itxaka 42d6c2321d
mysql: set hostpath for mysql-data
There is currently an issue with deploying single
pod mysql clusters in which restarting or killing
the pod will result in a crashloopbackoff.
The mysql data is indeed lost and the start script
(thinking the cluster was alive before
due to the grastate configmap) tries to restore
the cluster instead of bootstrapping it.
Due to this, if the mysql pod is killed or restarted
in the CI, we will lose all the mysql data, will not
recover, and this results in a broken environment.

When volume.use_local_path_for_single_pod.enabled value
is set to true, which we will apply on single node/single
pod testing, this patch will deploy a local volume
for mysql at the location specified under
volume.use_local_path_for_single_pod.host_path
The data will be kept intact in case
there is a pod restart, as it can read the data again,
and recover itself.

When it is false, which is the default for non-CI,
nothing changes, and an empty dir is used. This
data WILL be lost upon restart, so it is advised
to use volumes instead for production purposes,
by setting Values.volume.enabled to true.

task: 28729

Change-Id: I6ec0bd1087eb06b92ced7dc56ff5b6a156aad433
2019-05-21 19:41:13 +02:00
..
bin MariaDB: Remove mysql_upgrade as implemntation breaks mariabackup 2019-04-15 10:34:16 -05:00
etc MariaDB: Clean up values file and exporter start script 2019-04-07 15:13:05 +00:00
monitoring/prometheus Mariadb: Display error if user is not create 2019-04-22 18:07:28 +00:00
secrets MariaDB: add basic sanity test 2019-04-06 13:18:41 -04:00
configmap-bin.yaml MariaDB: add basic sanity test 2019-04-06 13:18:41 -04:00
configmap-etc.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
configmap-services-tcp.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
cron-job-backup-mariadb.yaml OSH-Infra: Add emptydirs for tmp 2019-04-20 20:50:59 +00:00
deployment-error.yaml OSH-Infra: Add emptydirs for tmp 2019-04-20 20:50:59 +00:00
deployment-ingress.yaml OSH-Infra: Add emptydirs for tmp 2019-04-20 20:50:59 +00:00
job-image-repo-sync.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
mariadb-backup-pvc.yaml Add mariadb backup capability to mariadb chart 2019-03-30 22:34:14 +00:00
network_policy.yaml Add network policy toolkit function 2018-10-15 13:50:50 +00:00
pdb-mariadb.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
pod-test.yaml OSH-Infra: Add emptydirs for tmp 2019-04-20 20:50:59 +00:00
secret-dbadmin-password.yaml Mariadb: move to mariabackup as wsrep sst method 2019-04-02 09:57:46 -05:00
secret-sst-password.yaml Mariadb: move to mariabackup as wsrep sst method 2019-04-02 09:57:46 -05:00
secrets-etc.yaml MariaDB: add basic sanity test 2019-04-06 13:18:41 -04:00
service-discovery.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
service-error.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
service-ingress.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
service.yaml MariaDB: Move chart to openstack-helm-infra 2018-09-04 18:57:53 -05:00
statefulset.yaml mysql: set hostpath for mysql-data 2019-05-21 19:41:13 +02:00