How do you get the ACTUAL backup location of Velero? To be more precise, I'm looking for the s3Url of the below example:
# velero backup-location get
NAME PROVIDER BUCKET/PREFIX PHASE LAST VALIDATED ACCESS MODE DEFAULT
default aws velero Available 2022-12-05 10:49:12 0100 CET ReadWrite true
I can't for the life of me find out how to get details about velero without knowing the command/helm chart that was used to install it.
Any help is greatly appreciated.
I tried digging around the YAML config of the pods and deployments, as well as the history of the admin machine we use to manage the OKD cluster. The velero pod logs are also useless because it just uses the name of the backup location without any sort of beneficial info.
CodePudding user response:
Assuming you have oc
(OpenShift client CLI) or kubectl
(Kubernetes client CLI) available, try listing the backupstoragelocations
for the cluster.
# List the BSLs
$ oc get backupstoragelocations -A
# Dump the YAML for the resources and look for the bucket field.
$ oc get backupstoragelocations -A -o=yaml | grep bucket:
Here is an example of what that resource might look like: https://velero.io/docs/v1.1.0/api-types/backupstoragelocation/