@Mohamed Ayman @Hinodeya @Gurudutt Dongre Does it make any sense to run "etcdctl . . .

Malayamanas Panda:
@Mohamed Ayman @Hinodeya @Gurudutt Dongre Does it make any sense to run “etcdctl snapshot restore” in a machine, which is niether master nor a worker node in K8s cluster ? Is it possible at all , to restore from a non-member machine ?

Malayamanas Panda:
It makes sense to create a snapshot save operation , in such a machine , which is neither a master nor a worker node, though .

Basavraj Nilkanthe:
yes you can… as long as if you dont have network blockage and you need etcdctl client on that machine from where you are testing…

Basavraj Nilkanthe:
–endpoints=<https://k|https://>[client-IP]:2379

Basavraj Nilkanthe:
where your kubernetes api server listening

Malayamanas Panda:
@Basavraj Nilkanthe Please share exact commands , does it need cacert cert and key files ?

Basavraj Nilkanthe:

ETCDCTL_API=3 etcdctl --endpoints https://[CLIENT-IP]:2379 \
  --cert=/etc/kubernetes/pki/etcd/server.crt \
  --key=/etc/kubernetes/pki/etcd/server.key \
  --cacert=/etc/kubernetes/pki/etcd/ca.crt \
  snapshot save /opt/cka-etcd.db

Basavraj Nilkanthe:
yes etcd will accept TLS connection

Malayamanas Panda:
this is ssnapshot save operation

Basavraj Nilkanthe:
so you have to pass certificates

Malayamanas Panda:
i am talking about snapshot retore operatin

Basavraj Nilkanthe:
sorry my bad…

Malayamanas Panda:
Please read my question in first comment

Basavraj Nilkanthe:
Yeah I get that

Basavraj Nilkanthe:
well, you can do that as long as you have .db file in that machine

Basavraj Nilkanthe:
ETCDCTL_API=3 etcdctl --endpoint=[CLIENT-IP]:2379 --data-dir /var/lib/etcd-cka-lab
snapshot restore /opt/snapshot-pre-boot.db

Basavraj Nilkanthe:
but this is not tested

Malayamanas Panda:
this is done in a master node

Basavraj Nilkanthe:
you can pass endpoint URL

Basavraj Nilkanthe:
right?