Back up and restore the cluster
The disaster recovery module backs up the cluster with Velero. furyctl has no backup or restore command: you use the velero CLI.
Enable the backups
The module is disabled by default (spec.distribution.modules.dr.type: none). To enable it, set the type:
eksfor theEKSClusterprovider.on-premisesfor the other providers.
Then run furyctl apply. See Disaster recovery for the other fields, for example the storage of the backups.
Default schedules
When the module is enabled, SD creates two Velero schedules in the kube-system namespace:
| Schedule | When | What | Kept for |
|---|---|---|---|
manifests | Every 15 minutes | The Kubernetes resources, without the volumes. | 30 days |
full | Every day at 01:00 | The Kubernetes resources and snapshots of the volumes. | 30 days |
To change or disable them, use spec.distribution.modules.dr.velero.schedules.
Restore
Install the Velero CLI. Velero runs in the kube-system namespace, so add -n kube-system to each command.
-
Find the backup that you want to restore:
velero backup get -n kube-system -
Restore it:
velero restore create <restore-name> --from-backup <backup-name> -n kube-system --wait
To make a backup now, from one of the schedules:
velero backup create <backup-name> --from-schedule full -n kube-system --wait
For the other options, see the Velero documentation.