I am trying to take backup of etcd in my cluster. Why am I getting etcdctl not . . .

K8ns:
I am trying to take backup of etcd in my cluster. Why am I getting etcdctl not found? I am running it on my master node.

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 snapshotdb
-bash: etcdctl: command not found

Tej_Singh_Rana:
Hello, @K8ns
You have to install the etcdctl tool.

K8ns:
@Tej_Singh_Rana Thank you for the quick response. Can you share me the link to install?

Tej_Singh_Rana:
Hello, @K8ns
Please take a look,
https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/07-bootstrapping-etcd.md#download-and-install-the-etcd-binaries

K8ns:
Thank you for quick response

Yuvaraj K:
@Tej_Singh_Rana in exam also do we need to install etcdctl tool.

Mohamed Ayman:
If you will run the etcd commands from the master node, you will need to install it.

Mohamed Ayman:
You can also install it using:

apt  install etcd-client