Backup Restore Kubernetes Cluster #2112
rjshrjndrn
started this conversation in
KnowledgeBase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For disaster recovery or any such reason, it's a good practice to have backups.
We'll check how to do backup restore in AKS clusters using an open source tool called Velero.
Steps
Reference: https://velero.io/docs/v1.5/basic-install/#install-the-cli
export KUBECONFIG=</path/to/kubeconfig>
Create installaton script
install.sh
Paste the content below in the script
bash -x install.sh
velero backup create myakscluster-backup --include-namespaces myakscluster,monitoring,logging --wait
velero get backups
Prior doing restore, repeat step 1-3
Don't have to change the installation script.
velero restore create --from-backup myakscluster-backup --wait
That's it. Now you've backed up and restore the cluster
Beta Was this translation helpful? Give feedback.
All reactions