k8s dns connection refused

E1129 02:09:35.538613 1 reflector.go:205] github.com/coredns/coredns/plugin/kubernetes/controller.go:314: Failed to list *v1.Endpoints: Get https://:443/api/v1/endpoints?limit=500&resourceVersion=0: dial tcp xxxx:443: connect: connection refused

 

# 注意事项
注:在api的service证书签发内留下dns的ip地址
# 报错:Failed to list *v1.Namespace: Get https://10.0.0.1:443/api/v1/namespaces?limit=500&resourceVersion=0: dial tcp 10.0.0.1:443: i/o timeout
解决方案:重启Node上的kube-proxy、重新创建coredns。

posted @ 2022-11-29 10:55  滴滴滴  阅读(798)  评论(0编辑  收藏  举报