Velero with AWS S3 - Establish a Backup Location
Create a Backup Storage Location
Create a location for the backup by pointing to an existing S3 bucket:
velero backup-location create -n ${WORKSPACE_NAMESPACE} <aws-backup-location-name> \ --provider aws \ --bucket ${BUCKET} \ --config region=<AWS_REGION> \ --credential=velero-aws-credentials=aws
CODECheck that the backup storage location is
Available
and that it references the correct S3 bucket:kubectl get backupstoragelocations -n ${WORKSPACE_NAMESPACE} -oyaml
CODE
If the BackupStorageLocation is not Available, view any error events by using: kubectl describe backupstoragelocations -n ${WORKSPACE_NAMESPACE}
Create a Test Backup
Create a test backup for AWS:
velero backup create aws-velero-testbackup -n ${WORKSPACE_NAMESPACE} --kubeconfig=${CLUSTER_NAME}.conf --storage-location <aws-backup-location-name> --snapshot-volumes=false
CODEView your backup:
velero backup describe aws-velero-testbackup
CODE