From 1fa4431eed0d0f3a3b69298f571536b5fc36e209 Mon Sep 17 00:00:00 2001 From: LH Date: Thu, 16 Nov 2023 17:35:57 +0100 Subject: [PATCH] Mariadb 38 --- .../templates/backup.yml | 19 +++++++++++++++++++ apps/mariadb-shared-cluster/values.lab.yml | 10 +++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 apps/mariadb-shared-cluster/templates/backup.yml diff --git a/apps/mariadb-shared-cluster/templates/backup.yml b/apps/mariadb-shared-cluster/templates/backup.yml new file mode 100644 index 000000000..e9578619a --- /dev/null +++ b/apps/mariadb-shared-cluster/templates/backup.yml @@ -0,0 +1,19 @@ +apiVersion: mariadb.mmontes.io/v1alpha1 +kind: Backup +metadata: + name: {{ .Release.Name }} +spec: + mariaDbRef: + name: {{ .Release.Name }} + schedule: + cron: "0 23 * * *" + suspend: false + maxRetentionDays: 30 + storage: + persistentVolumeClaim: + storageClassName: {{ .Values.persistence.backup.storageClassName }} + resources: + requests: + storage: {{ .Values.persistence.backup.requestSize }} + accessModes: {{ .Values.persistence.backup.accessModes | toYaml | nindent 6 }} + resources: {{ .Values.backupResources | toYaml | nindent 4 }} diff --git a/apps/mariadb-shared-cluster/values.lab.yml b/apps/mariadb-shared-cluster/values.lab.yml index 50fcd8cef..2806bae68 100644 --- a/apps/mariadb-shared-cluster/values.lab.yml +++ b/apps/mariadb-shared-cluster/values.lab.yml @@ -4,7 +4,7 @@ persistence: requestSize: 1Mi # Ignored by gluster accessModes: - ReadWriteMany - galeraConfig: + backup: storageClassName: local-path-provisioner-services requestSize: 1Mi # Ignored by gluster accessModes: @@ -16,4 +16,12 @@ resources: memory: 128Mi limits: cpu: 500m + memory: 512Mi + +backupResources: + requests: + cpu: 10m + memory: 128Mi + limits: + cpu: 2000m memory: 512Mi \ No newline at end of file