--- apiVersion: v1 data: AWS_ACCESS_KEY_ID: WERpeGhFSVh6TFdNdTdLM3BGMVM= AWS_SECRET_ACCESS_KEY: UkpZMjZQVnBPMkl4d3NtNno3T01yUng1bGtzeVpCOFZOSnJWN2Rjeg== S3_ENDPOINT: bXltaW5pby1obC5taW5pbzo5MDAw kind: Secret metadata: name: my-cluster-backup-secret namespace: mysql type: Opaque --- apiVersion: mysql.presslabs.org/v1alpha1 kind: MysqlBackup metadata: name: my-cluster-backup namespace: mysql spec: # this field is required clusterName: my-cluster ## if backupURL is specified then the backup will be put ## at this path, else the backup URL will be filled with ## the cluster preset backupURL and a random name backupURL: "s3://mysql-bak/test/" ## specify a secret where to find credentials to access the ## bucket backupSecretName: my-cluster-backup-secret ## specify the remote deletion policy. It can be on of ["retain", "delete"] remoteDeletePolicy: delete