MySQL Forums
Forum List  »  MySQL & Kubernetes

MySQL Operator - Backup S3 (CloudFlare)
Posted by: Stefan Walther
Date: June 17, 2024 06:43AM

Dear community, I am not sure how to use backup in combination with s3.
The values.yaml file also did not hinted much how to use it

apiVersion: mysql.oracle.com/v2
kind: InnoDBCluster
metadata:
name: my-db
namespace: mysql-operator
spec:
secretName: my-db-secrets
tlsUseSelfSigned: true
instances: 2
router:
instances: 1

backupProfiles:
- name: my-db-s3-backup-profile
dumpInstance:
dumpOptions:
excludeSchemas: ["information_schema"]
storage:
s3:
bucketName: my-db-backup
config: my-db-backup-secrets
prefix: mysql
endpoint: https://XXXX.eu.r2.cloudflarestorage.com
backupSchedules:
- name: my-db-daily-s3-backup
schedule: "27 12 * * *" # Daily at 2 AM
backupProfileName: my-db-s3-backup-profile
deleteBackupData: false
enabled: true
---
apiVersion: v1
kind: Secret
metadata:
name: my-db-backup-secrets
namespace: mysql-operator
type: Opaque
stringData:
awsAccessKeyId: XXX
awsSecretAccessKey: XXX


FYI: the target is to use S3 provided by Cloudflare
https://www.cloudflare.com/en-gb/developer-platform/r2/

FYI: Helm Chart values https://github.com/mysql/mysql-operator/blob/trunk/helm/mysql-innodbcluster/values.yaml seams to miss a : at line 154 for endpoint?

thank you for your help in advance!

Options: Reply• Quote


Subject
Written By
Posted
MySQL Operator - Backup S3 (CloudFlare)
June 17, 2024 06:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.