Understanding Kubernetes backups
Backing up a Kubernetes cluster requires backing up not only the workloads running on the cluster. You need to consider any persistent data and the cluster itself. Remember that the cluster state is maintained in an etcd
database, making it a very important component that you need to back up in order to recover from any disasters.
Creating a backup of the cluster and the running workloads allows you to do the following:
- Migrate clusters.
- Create a development cluster from a production cluster.
- Recover a cluster from a disaster.
- Recover data from persistent volumes.
- Namespace and deployment recovery.
In this chapter, we will provide the details and tools to back up your etcd
database, your namespace, the objects in them, and any persistent data you have attached to your workloads.
Recovering a cluster from a complete disaster in an enterprise usually involves backing up custom SSL certificates for various...