Hi,
Struggling a little with the documentaion, which at a guess seems to be biased toward installation of the operator via git and kubectl. I’ve taken the Helm approach, and would like to take an on demand backup to test that everythings working correctly before creating a cronjob to run nightly backups, and to do a test restore.
I’ve created and applied a Kubernetes secret, which contains our AWS access key id and secret. and now just need to put together a custom resource which ties everythinig together. It would seen that I need to do 2 things - to run the on demand backup, use the example shown here - Making on-demand backup - Percona Operator for MongoDB
That needs a storagename, which in my case is s3-eu-west. The cr I’ve put together is failing with the error
error: error parsing s3-ms-cr.yaml: error converting YAML to JSON: yaml: did not find expected node content
s3-ms-cr.yaml
backup:
enabled: true
restartOnFailure: true
image: percona/percona-server-mongodb-operator:1.13.0-backup
serviceAccountName: perc-mongo-op-psmdb-operator
serviceAccountName: percona-server-mongodb-operator
storages:
s3-eu-west:
type: s3
s3:
bucket: s3://backups.example.com/archive/server20/
region: eu-west-1
credentialsSecret: secretname-backup-s3
I’ve tried with both service account names, same error
Is this the correct way to go, and if so, does anyone have a pointer as to what I might have done wrong, file appears to be ok , no strange characters.
Many thanks,
Mike