mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
{{- if .Values.s3.enabled }}
|
|
apiVersion: k8s.mariadb.com/v1alpha1
|
|
kind: Backup
|
|
metadata:
|
|
name: backup
|
|
namespace: mariadb-operator
|
|
spec:
|
|
mariaDbRef:
|
|
name: mariadb-repl
|
|
namespace: mariadb-operator
|
|
schedule:
|
|
cron: "0 */3 * * *"
|
|
suspend: false
|
|
timeZone: "Europe/Prague"
|
|
maxRetention: 720h # 30 days
|
|
compression: bzip2
|
|
storage:
|
|
s3:
|
|
bucket: {{ .Values.s3.bucket | quote }}
|
|
endpoint: {{ .Values.s3.endpoint | quote }}
|
|
accessKeyIdSecretKeyRef:
|
|
name: s3-credentials
|
|
key: key_id
|
|
secretAccessKeySecretKeyRef:
|
|
name: s3-credentials
|
|
key: secret_key
|
|
region: {{ .Values.s3.region | quote }}
|
|
tls:
|
|
enabled: true
|
|
# Define a PVC to use as staging area for keeping the backups while they are being processed.
|
|
stagingStorage:
|
|
persistentVolumeClaim:
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
args:
|
|
- --single-transaction
|
|
- --all-databases
|
|
logLevel: info
|
|
{{- end }} |