Velero with Azure Blob Containers - Establish a Backup Location
Create a Backup Storage Location
Create a location for the backup by pointing to an existing Azure container:
Ensure you set the required environment variables as specified in Velero with Azure Blob Containers - Prepare your Environment.
Replace<azure-backup-location-name>
with a name for the backup location.CODEvelero backup-location create <azure-backup-location-name> -n ${WORKSPACE_NAMESPACE} \ --provider azure \ --bucket ${BLOB_CONTAINER} \ --config resourceGroup=${AZURE_BACKUP_RESOURCE_GROUP},storageAccount=${AZURE_STORAGE_ACCOUNT_ID},subscriptionId=${AZURE_BACKUP_SUBSCRIPTION_ID} \ --credential=velero-azure-credentials=azure --kubeconfig=${CLUSTER_NAME}.conf
Check that the backup storage location is
Available
and that it references the correct Azure container:CODEkubectl get backupstoragelocations -n ${WORKSPACE_NAMESPACE} -oyaml
Create a Test Backup
Create a test backup that is stored in the location you created in the previous section:
CODEvelero backup create azure-velero-testbackup -n ${WORKSPACE_NAMESPACE} \ --kubeconfig=${CLUSTER_NAME}.conf \ --storage-location <azure-backup-location-name> \ --snapshot-volumes=false
View your backup:
CODEvelero backup describe azure-velero-testbackup