Created
February 5, 2021 15:08
-
-
Save hossainemruz/b0a80bf67de16d2c6f93c3967c0f8e52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```yaml | |
apiVersion: kubedb.com/v1alpha2 | |
kind: MySQL | |
metadata: | |
name: wordpress-mysql | |
namespace: demo | |
spec: | |
version: 8.0.21 | |
replicas: 3 | |
topology: | |
mode: GroupReplication | |
group: | |
name: "dc002fc3-c412-4d18-b1d4-66c1fbfbbc9b" | |
baseServerID: 100 | |
storageType: Durable | |
storage: | |
storageClassName: "standard" | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 1Gi | |
terminationPolicy: WipeOut | |
``` |
Author
hossainemruz
commented
Feb 5, 2021
apiVersion: stash.appscode.com/v1beta1
kind: BackupConfiguration
metadata:
name: wordpress-backup
namespace: demo
spec:
schedule: "*/5 * * * *"
repository:
name: gcs-repo
task:
name: mysql-backup-8.0.21
params:
- name: "args"
value: "--single-transaction --all-databases --set-gtid-purged=OFF"
target:
alias: db
ref:
apiVersion: appcatalog.appscode.com/v1alpha1
kind: AppBinding
name: wordpress-mysql
retentionPolicy:
name: keep-last-5
keepLast: 5
prune: true
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment