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: mariaDbRef:
name: mariadb name: mariadb
timeZone: "America/Chicago" timeZone: "America/Chicago"
schedule: # schedule:
cron: "0 * * * *" # cron: "0 * * * *"
suspend: false # suspend: false
stagingStorage:
persistentVolumeClaim:
storageClassName: openebs-hostpath
resources:
requests:
storage: 6Gi
accessModes:
- ReadWriteOnce
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
storage: storage:
s3: s3:
endpoint: s3.hsn.dev endpoint: s3.hsn.dev

View file

@ -11,9 +11,9 @@ spec:
storage: storage:
size: 5Gi size: 5Gi
storageClassName: openebs-hostpath storageClassName: openebs-hostpath
bootstrapFrom: # bootstrapFrom:
backupRef: # backupRef:
name: mariadb-backup # name: mariadb-backup
maxScale: maxScale:
enabled: true enabled: true
kubernetesService: 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