mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

Cannot setup DigitalOcean Space S3-backups

Open matrix-root opened this issue 2 years ago • 1 comments

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

matrix-root avatar May 11 '22 07:05 matrix-root

Try AWS_SECRET_KEY instead of AWS_SECRET_ACCESS_KEYmaybe... 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.

elderapo avatar May 16 '22 18:05 elderapo