Silly question. Just setup a 4 node kubernetes cluster (one master node). The etcd pod is running in the kube-system. But I can not find the etcdctl in regular path.
# find / -name etcdctl -print
/var/lib/docker/overlay2/9c0f2f2ef864f3be6f4195cbcda59b712805fc1957204b97d36a9239e3adb1cf/diff/usr/local/bin/etcdctl
/var/lib/docker/overlay2/bf2ff1f903bef67c6ed8ddf0b37cc6a90788974f61275df5d5fe3d9bdaca232c/merged/usr/local/bin/etcdctl
Used the found etcdctl to take snapshot but it's hung. Do I need to install etcdctl? Thanks!
If you are new to
docker
, what you have found is the volume mount for the etcd container, and inside that container is theetcdctl
binary that is designed for use with theetcd
binary inside the container.You will want to
docker exec
into the container so you will have access to all the environment variables, config files, hostnames, etc that would be required to interact withetcd
. Their documentation shows an example of usingdocker exec
.The fine manual also describes that you will want to ensure the
ETCDCTL_API
environment variable is correctly set while usingetcdctl
.