k8s etcd 连接错误

今天在用代码连接k8s内部的etcd的时候,遇到了下面这个错误,全网搜索也没有相似的:

{"level":"warn","ts":"2020-04-19T19:59:50.119+0800","caller":"clientv3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"endpoint://client-73d50550-933e-4101-a717-e64553b58c77/192.168.226.128:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: all SubConns are in TransientFailure, latest connection error: connection closed"}

在put 插入值得时候就断开连接了,如果不用k8s集群内部得etcd就没得问题,于是猜测是k8s采用的是https,需要一些认证。大家如果有什么好的解决方法,欢迎关注加群讨论。

k8s etcd 连接错误_第1张图片

你可能感兴趣的:(云原生)