Kubernetes Cluster Shutdown and Restart
Warning
Shutting down a cluster is very dangerous. You must fully understand the operation and its consequences. Please make an etcd backup before you proceed. Usually, it is recommended to maintain your nodes one by one instead of restarting the whole cluster.
- Take an etcd backup prior to shutting down a cluster.
Tip
- You must back up your etcd data before you shut down the cluster as your cluster can be restored if you encounter any issues when restarting the cluster.
- Using the method in this tutorial can shut down a cluster gracefully, while the possibility of data corruption still exists.
Step 2: Shut down all nodes
You can restart a Kubernetes cluster gracefully after shutting down the cluster gracefully.
You have shut down your cluster gracefully.
Tip
- etcd data corruption during the shutdown.
- Node failures.
- Unexpected network errors.
Step 1: Check all cluster dependencies’ status
Ensure all cluster dependencies are ready, such as external storage.
Wait for the cluster to be up and running, which may take about 10 minutes.
Step 3: Check all master nodes’ status
Check the status of core components, such as etcd services, and make sure everything is ready.