theshire/kubernetes/apps/database/mariadb/cluster/backup.yaml

38 lines
885 B
YAML
Raw Normal View History

2024-11-27 15:32:55 -06:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/k8s.mariadb.com/backup_v1alpha1.json
apiVersion: k8s.mariadb.com/v1alpha1
kind: Backup
metadata:
name: &name mariadb-backup
spec:
mariaDbRef:
name: mariadb
timeZone: "America/Chicago"
2024-11-28 07:28:41 -06:00
schedule:
cron: "0 * * * *"
suspend: false
2024-11-27 16:24:31 -06:00
stagingStorage:
persistentVolumeClaim:
storageClassName: openebs-hostpath
resources:
requests:
storage: 6Gi
accessModes:
- ReadWriteOnce
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
2024-11-27 15:32:55 -06:00
storage:
s3:
endpoint: s3.hsn.dev
bucket: mariadb
2024-11-29 07:17:57 -06:00
prefix: full/
2024-11-27 15:32:55 -06:00
accessKeyIdSecretKeyRef:
name: mariadb-secret
key: AWS_ACCESS_KEY_ID
secretAccessKeySecretKeyRef:
name: mariadb-secret
key: AWS_SECRET_ACCESS_KEY