Supriya Pandey:
Hi
while running the
kubectl exec etcd-docker-desktop -n kube-system -- etcdctl member list
then getting below error
{"level":"warn","ts":"2021-10-19T15:58:50.886Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"<endpoint://client-b4693fc4-f872-4c54-921a-608d171e8fd3/127.0.0.1:2379>","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: all SubConns are in TransientFailure, latest connection error: connection closed"} Error: context deadline exceeded
Could someone please help me with this?
unnivkn:
Hi… @Supriya Pandey please try this:
ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2379
–cert=/etc/kubernetes/pki/etcd/server.crt
–key=/etc/kubernetes/pki/etcd/server.key
–cacert=/etc/kubernetes/pki/etcd/ca.crt
member list
Supriya Pandey:
@unnivkn getting error
Supriya Pandey:
Error: open /etc/kubernetes/pki/etcd/server.crt: no such file or directory
Supriya Pandey:
@unnivkn Thanks its work
ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2379 \
--cert=/run/config/pki/etcd/server.crt \
--key=/run/config/pki/etcd/server.key \
--cacert=/run/config/pki/etcd/ca.crt \
member list
unnivkn:
ok…nice… I was searching for the Docker Desktop for Windows certfile locations
unnivkn:
I suggest you to practice on Ubuntu machine. Since exam is on Ubuntu environment.
Supriya Pandey:
yeah, but there kubeadm is not working, I am facing connection issue.
unnivkn:
please try this: