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:
|
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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
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