mysql-operator
mysql-operator copied to clipboard
Cannot setup DigitalOcean Space S3-backups
Hi! Do anyone have success with setting up Digital Ocean backups?
There is my cluster config:
backupSchedule: "0,10,20,30,40,50 * * * *"
backupSecretName: digitalocean-backup
backupURL: s3://test-k8s-mysql-backups
storageSize: 10G
And secret:
metadata:
name: digitalocean-backup
spec:
stringData:
AWS_ACCESS_KEY_ID: <keyid>
AWS_SECRET_ACCESS_KEY: <secretkey>
AWS_REGION: fra1
S3_PROVIDER: AWS
S3_ENDPOINT: fra1.digitaloceanspaces.com
What I see in logs:
NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Try AWS_SECRET_KEY
instead of AWS_SECRET_ACCESS_KEY
maybe... Also I think you might need to change backupURL
from s3://test-k8s-mysql-backups
something like s3://test-k8s-mysql-backups/backups
.
I've been successfully using DO spaces for backups. All options I have in the secret is: AWS_ACCESS_KEY_ID
, AWS_SECRET_KEY
& S3_ENDPOINT
.