I am working on backup-restore to Google Cloud Storage using xbcloud. Commands using --google-secret-key
and --google-access-key
works as expected. i.e. following command works
ncat --recv-only mysql-0.mysql 3307 | xbcloud put --storage='google' --google-endpoint='storage.googleapis' --google-access-key='xxx' --google-secret-key='xxx' --google-bucket='xxx' --parallel=10 backup_file_xxx
I want to take backups from containers using Permitted service accounts or Workload identity for GKE
Skipping these variables fails with error:
$ ncat --recv-only mysql-0.mysql 3307 | xbcloud put --storage='google' --google-endpoint='storage.googleapis' --google-bucket='xxx' --parallel=10 backup_file_xxx
220706 07:48:29 xbcloud: Probe failed. Please check your credentials and endpoint settings.