Root@controlplane:~# ETCDCTL_API=3 etcdctl --endpoints=<https://127.0.0.1:2379> . . .

Akash Saha:
root@controlplane:~# ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379
> --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key
> snapshot save /opt/snapshot.db
bash: etcdctl: command not found

Akash Saha:
I want to take backup but etcdctl is not installed…how to install etcdctl?

Akash Saha:
This link worked for me but in exam we will not be able to use stack overflow i guess

Akash Saha:
https://stackoverflow.com/questions/46402089/etcdctl-command-not-found

Alistair Mackay:
etcdctl will be installed somewhere which may be the master/controlplane or the node you are on when the lab starts.

If it is not installed on the same node where the etcd daemon/pod is running, then you need to use --endpoints to point it to the correct node.

If you’re doing a kodekloud lab/killer.sh/real exam question about etcd backup, then for etcdctl not to be present would be an error in the environment.

Vitor Jr.:
@Akash Saha, during the exam, you will have access to a client with etcd installed or have to ssh to control-plane and execute the backup command. Like @Alistair Mackay said, remember the --endpoints parameter and check etcd.yaml to confirm which endpoint values are available.