The install-velero.sh script will configure velero into the existing cluster and create a backup Azure
Resource Group and Azure Storage Account to store the Velero backups.
To setup the backup.
-
Go to the installer/aks directory
-
Edit the env.sh file and customize the Velero settings
Setting
Description
VELERO_BACKUP_RESOURCE_GROUP
The resource group used to store velero backups. If this does not exist, it will be created. This should be a different resource group than the cluster resource group to provide redundancy.
Default = $RESOURCE_GROUP-backupVELERO_BLOB_CONTAINER
The name of the Storage Account Container that will be used to store backups.
Default = $CLUSTER_NAME-backupVELERO_SCHEDULE_CRON_EXPR
The CRON Expression used to schedule backups.
Default = 0 7 * * *
This is daily at 7 AMVELERO_BACKUP_RETENTION
The # of hours the backup will be saved by Velero.
Default = 720h0m0s
-
Install Velero into the cluster by running ‘./install-velero.sh’
-
When the script completes, the following message is displayed.
-
Run the following command to ensure that Velero pod is started, run ‘kubectl get pods -n velero’
-
The installation of Velero also creates an initial backup. To see all backups, run ‘velero backup get’. This will list all backups, their statuses, and retention policies.
-
Additional backups will be taken based on the ‘VELERO_SCHEDULE_CRON_EXPR’. To create a backup manually, run ‘velero backup create <name>’