Restore ECTD from a backup

What is the correct way to restore ETCD? the practise video has a different appoard, the solution after the practise video has a different approach as well

And

have different answers, please assist.

The Community FAQ version was edited rather recently, so that’s the one to bet by. But there are slight variations as to what will work; try one way and see how it goes.

If you’re worried about whether or not to stop control plane processes, for these clusters don’t worry about it.

When there is only one control plane and one etcd, then nothing untoward is going to happen. Recall that the only components allowed to talk to etcd are API server and other instances of etcd, therefore in a HA cluster you need to stop everything so that other etcd’s don’t modify data while you are restoring…

With a single node

  • Run etcdctl restore - this creates new files from the backup. The existing etcd knows nothing of these files, until…
  • You edit the etcd manifest to update the volume mount to the location of the restored backup.
  • You save the edit. etcd restarts, then API server restarts, then controller-manager sees the state of the cluster has changed, so deploys/undeploys things as needed to get to the state of the restored backup - all good.

Just do the restore lab a few times. What works there will work in the exam.

Thank you @Alistair_KodeKloud. This helped me to answer the question correctly and clear my CKA exam✌️