Tibor Kircsi:
sh-5.0# etcdctl get / --prefix
{“level”:“warn”,“ts”:“2021-08-25T20:59:10.238Z”,“caller”:“clientv3/retry_interceptor.go:62",“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-13ea8e6c-dba9-4bab-8924-cf8257ce883f/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
Tibor Kircsi:
??? It doesn’t relate to my question/problem.
Tibor Kircsi:
Finally I got it: 1. get cert and keys path with kubectl describe pod -n kube-system etcd-minikube
Tibor Kircsi:
and run etcdctl with certs and keys kubectl exec etcd-minikube -n kube-system -- etcdctl get /
--prefix
--keys-only
--cacert /var/lib/minikube/certs/etcd/ca.crt
--cert /var/lib/minikube/certs/etcd/server.crt
--key /var/lib/minikube/certs/etcd/server.key
--endpoints=127.0.0.1:2379