testing restore/backup
This commit is contained in:
parent
66dbac10d5
commit
65022cdf10
3 changed files with 36 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
17
kubernetes/apps/database/mariadb/cluster/restore.yaml
Normal file
17
kubernetes/apps/database/mariadb/cluster/restore.yaml
Normal 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
|
Loading…
Reference in a new issue