summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-09-01 07:43:29 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-01 07:43:29 +0000
commitc2c76e22db6aaaa18ab9b8252bf348a92176a227 (patch)
tree6d2d1181e3146b18f0206a2b37a7bbf2adf2e9a9 /kubernetes
parentb2fc50cd823f9dbbe5ce974e39b70124631c419d (diff)
parent2ae64f6c40ba6070d9fd12982699011cf02b0051 (diff)
Merge "Fix of mariadb-galera backup charts."
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml b/kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml
index 29d96748a3..0c05977322 100644
--- a/kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml
+++ b/kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml
@@ -90,6 +90,8 @@ spec:
volumeMounts:
- name: backup-dir
mountPath: /backup
+ - name: db-data
+ mountPath: /var/lib/mysql
containers:
- name: mariadb-backup-validate
image: "{{ include "common.repository" . }}/{{ .Values.backupImage }}"
@@ -164,4 +166,7 @@ spec:
- name: backup-dir
persistentVolumeClaim:
claimName: {{ include "common.fullname" . }}-backup-data
+ - name: db-data
+ persistentVolumeClaim:
+ claimName: {{ include "common.fullname" . }}-data-{{ include "common.fullname" . }}-{{ sub .Values.replicaCount 1 }}
{{- end }}