I’m trying to restore the data on the Kubernetes-based cluster different from one that I have the backup using the following content in restore.yml file.
But, the psmdb-restore action never starts and the status is shown empty always.
kubectl get psmdb-restore --all-namespaces
NAMESPACE NAME CLUSTER STATUS AGE
commonns restore1 mano-db-percona 29s
The S3 bucket name is mano-cloud2-backup and the credentialSecret defined in cr.yaml is mano-db-percona-backup-s3.
I’m able to take backups using this configuration and able to restore on the same kubernetes environment where the backup was taken.
The restore never starts when attempted on a new k8s environment using the backupSource option.
I really appreciate any pointers on what is wrong in the above procedure and that would help me crossing this hurdle.
Could you please check operator logs if there’s some error printed there and also “kubectl get pxc-restore restore1 -oyaml” (there might be some more info there).
Apart from that please try to specify bucket and endpointUrl in backupSource->s3 part of yaml, something like:
Thank you very much for the reply and pointer to check the Percona operator logs.
The restore worked fine after correcting the restore.yaml as below. The backupName and backupSource options are required to get the restore working on a fresh cluster. There was an error reported in the Percona operator log when the backupName option was missing.