testing restore/backup

This commit is contained in:
Joseph Hanson 2024-11-27 16:24:31 -06:00
parent 66dbac10d5
commit 65022cdf10
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 36 additions and 6 deletions

View file

@ -8,9 +8,22 @@ spec:
mariaDbRef:
name: mariadb
timeZone: "America/Chicago"
schedule:
cron: "0 * * * *"
suspend: false
# schedule:
# cron: "0 * * * *"
# suspend: false
stagingStorage:
persistentVolumeClaim:
storageClassName: openebs-hostpath
resources:
requests:
storage: 6Gi
accessModes:
- ReadWriteOnce
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
storage:
s3:
endpoint: s3.hsn.dev

View file

@ -11,9 +11,9 @@ spec:
storage:
size: 5Gi
storageClassName: openebs-hostpath
bootstrapFrom:
backupRef:
name: mariadb-backup
# bootstrapFrom:
# backupRef:
# name: mariadb-backup
maxScale:
enabled: true
kubernetesService:

View file

@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/k8s.mariadb.com/restore_v1alpha1.json
apiVersion: k8s.mariadb.com/v1alpha1
kind: Restore
metadata:
name: restore
spec:
mariaDbRef:
name: mariadb
namespace: database
backupRef:
name: mariadb-backup
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch