Query related to etcd restore in CKA

Hi All,

I attempted CKA certification and there was a question to restore from existing backup.

I used these commands

export ETCDCTL_API=3
sudo etcdctl --data-dir  /var/lib/etcdbkup snapshot restore snapshot.db

and modified etcd manifest file as below but etcd pod did not come up :frowning:

  • hostPath:
    path: /var/lib/etcdbkup
    type: DirectoryOrCreate
    name: etcd-data

I did not get good time to investigate it further. Any idea what could have gone wrong here as it was a straight forward question to me !

Thanks,
Hari

It looks about right, but when clusters fail to come up, you should know how to troubleshoot them - and practice this! One way to do the exam is to do all the easy/quick to do questions first, then do stuff like cluster upgrade and etcd restore at the end.

Make sure you get super quick at using vi, using autocomplete for kubetcl, knowing how to use kubectl explain instead of documentation and you can buy the time you need to troubleshoot.