diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-09-01 07:43:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-01 07:43:29 +0000 |
commit | c2c76e22db6aaaa18ab9b8252bf348a92176a227 (patch) | |
tree | 6d2d1181e3146b18f0206a2b37a7bbf2adf2e9a9 /kubernetes/common | |
parent | b2fc50cd823f9dbbe5ce974e39b70124631c419d (diff) | |
parent | 2ae64f6c40ba6070d9fd12982699011cf02b0051 (diff) |
Merge "Fix of mariadb-galera backup charts."
Diffstat (limited to 'kubernetes/common')
-rw-r--r-- | kubernetes/common/mariadb-galera/templates/backup/cronjob.yaml | 5 |
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 }} |