Hello Experts, I have my exam scheduled tomorrow. I want to ask one question which I find a bit confusing. If in question it is written restore an existing etcd snapshot at <dir>.
In this question are we simply supposed to run snapshot restore which will create default.etcd directory with etcd data in pwd?
we must load this data to /var/lib/etcd to apply on current cluster? Thanks.
@Mumshad Mannambeth @Tej_Singh_Rana Any comments?
If you are asked to restore to a folder run the restore with —data-dir=<restore path>
If you have to restore to a running instance, check what the instance data directory is; stop the instance; backup original data dir; restore the backup to the data dir; start the instance
We did a restore example in the course where the etcd is running as a static pod.
In the exam, there can be one of below 3 scenarios
- etcd running as static pod
- etcd running as deployment or pod
- etcd running as a software on a Linux machine
Irrespective, the solution is the same, only challenge with the scenario (3) is you need to identify where it’s setup - May be it’s configured in systemctl
Thanks @Ravan Nannapaneni