Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Mariadb 38
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Nov 16, 2023
1 parent bbd10f2 commit 1fa4431
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
19 changes: 19 additions & 0 deletions apps/mariadb-shared-cluster/templates/backup.yml
Original file line number Diff line number Diff line change
@@ -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 }}
10 changes: 9 additions & 1 deletion apps/mariadb-shared-cluster/values.lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -16,4 +16,12 @@ resources:
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi

backupResources:
requests:
cpu: 10m
memory: 128Mi
limits:
cpu: 2000m
memory: 512Mi

0 comments on commit 1fa4431

Please sign in to comment.