Closed Jose-Matsuda closed 1 year ago
Jose notes We'd probably want a on-demand backup that backs up the entire cluster state
1) Where do backups get saved? Where did CNS setup Velero to send backups to?
velero-hourly-resources
backups, what is in those?
1) Create a backup of a single namespace with resources in it in dev.
2) Delete that namespace and all resources kubectl delete all --all -n jose-test-delete
3) Attempt to restore it. velero restore create restore-name --from {name}
velero.io/v1/backups
crdThere are restore hooks but I don't think we need these as I dont believe there's anything special. Let's also not mess with any backup storage locations
This is meant to be a more consumable version of my above comment, where I ramble and care less about quality.
What are we currently backing up?
backup
resources we can determine that we backup resources under all namespaces that are not volumes. How often are we backing up?
Where is it stored?
kubectl describe pod velero-85db44fb6c-9kc2q -n velero-system
shows that we use velero-plugin-for-microsoft-azure:v1.5.0
and uses azure credentials (also here in the terraform creating velero with the velero repo here our highest level config here).BackupStorageLocation
in velero-system
named cluster-name
with config to an Azure bucket. How can we restore something?
velero restore create restore-name --from-backup {name}
where restore-name
is the name of what you want the restore to be called and {name} is the name of the backup you are referring to (like velero-hourly-resources-20230630120028)How do we manually create a backup?
Using official docs. Also do not forget the --namespace velero-system flag when running any velero
commands
Do note that CNS has their own documentation on restoring using velero.
namespace
, 1 for backup
, 1 for restore
Find out if you can restore just a specific resource. The backup
resource will generally have multiple resources (secrets, configmaps etc) but can we restore just secrets?
Note that by default velero won't overwrite
Just use resource filtering
Hard initial deadline of end of day Tuesday July 4th https://cloudnative.pages.cloud.statcan.ca/en/documentation/best-practices-meilleures-pratiques/how-to-guide/velero.namespace.restore/
Will close this after discussing results at tech elab.