kube-proxy pod in worker node has a log 'failed to list *v1.EndpointSlice: Get "https://172.30.1.1:6443/apis/discovery.k8s.io/v1/endpointslices?labelSelector=%21service.kubernetes.io%2Fheadless%2C%21service.kubernetes.io%2Fservice-proxy-name&resourceVersion=39745": dial tcp 172.30.1.1:6443: connect: connection refused', What's wrong?
时间: 2023-06-08 16:08:35 浏览: 116
Explanation: The Web server refused the connection.
答案是该错误通常是因为kube-proxy无法访问apiserver导致的。您可以检查kube-proxy容器的日志以获取更多详细信息,或者确保该节点可以访问apiserver并尝试重启kube-proxy。如果问题仍然存在,您可以从该节点删除kube-proxy pod并等待其重新创建。
阅读全文