Hello Experts, I have my exam scheduled tomorrow. I want to ask one question whi . . .

Jaspreet Singh:
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?
Or
we must load this data to /var/lib/etcd to apply on current cluster? Thanks.

Jaspreet Singh:
@Mumshad Mannambeth @Tej_Singh_Rana Any comments?

Ravan Nannapaneni:
If you are asked to restore to a folder run the restore with —data-dir=<restore path>

Ravan Nannapaneni:
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

Ravan Nannapaneni:
We did a restore example in the course where the etcd is running as a static pod.

Ravan Nannapaneni:
In the exam, there can be one of below 3 scenarios

  1. etcd running as static pod
  2. etcd running as deployment or pod
  3. 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

Jaspreet Singh:
Thanks @Ravan Nannapaneni