shlogg · Early preview
Cheedge Lee @cheedge

Restore Etcd Cluster With Kubernetes Backup

Stop all API servers, restore etcd state, then restart API servers. Use crictl to interact with containers if containerd is used.

1. Backup

This pare can refer to my last post, here.

  
  
  2. Restore

To follow the official procedure[1]:
"If any API servers are running in your cluster, you should not attempt to restore instances of etcd."
Therefore, for restoring an etcd backup, where we need to stop all API server instances, restore the etcd state, then restart the API servers:

stop all API server instances
restore state in all etcd instances
restart all API server instances



  
  
  2.1 Stop all API server instances

check the api server

# check the api server
$ k get pods -n kube-system
NAME...