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
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.