Interview Prep/Kubernetes/EKS, Upgrades & etcd Backup

Walk through restoring a kubeadm etcd cluster from a snapshot.

AdvancedConceptEKS, Upgrades & etcd Backup
Answer

Stop the API server and etcd static Pods (move the manifests out of /etc/kubernetes/manifests); restore the snapshot to a new directory with etcdutl snapshot restore snap.db --data-dir /var/lib/etcd-restore (on multi-member clusters pass --name, --initial-cluster, --initial-advertise-peer-urls on each node with the same snapshot); edit the etcd manifest's hostPath to the new dir; put the manifests back; verify with etcdctl endpoint health. Restore re-creates the membership, so all members must be restored together.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS, Upgrades & etcd Backup