Interview Prep/Kubernetes/EKS, Upgrades & etcd Backup

What are the etcd snapshot backup and restore basics?

IntermediateConceptEKS, Upgrades & etcd Backup
Answer

Take snapshots with etcdctl snapshot save using the cluster's certificates, verify with snapshot status, and restore into a new data directory with etcdutl snapshot restore (etcd 3.6) then point etcd to it.

ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \
  --cacert=/etc/kubernetes/pki/etcd/ca.crt \
  --cert=/etc/kubernetes/pki/etcd/server.crt \
  --key=/etc/kubernetes/pki/etcd/server.key \
  snapshot save /backup/etcd-$(date +%F).db
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS, Upgrades & etcd Backup