Closed hurdonkey closed 1 month ago
This issue is currently awaiting triage.
If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
/sig network
我找到了原因,因为我节点上的/etc/resolv.conf 包含了 ”search localhost“, kubelet 创建pod时将“localhost” 添加到search中了,导致了以上问题。
我从 /etc/relov.conf 中删除 localhost, 再创建pod 就好了。
What happened?
Hi, friends, my cluster pods can not able to access all external domains, because all external domains are resolved to localhost. troubleshooting revealed that "localhost" has been added to the first line of /etc/resolv.conf in the pod. I found that other clusters don't seem to have this "localhost" item. My cluster version is 1.30 . I noticed that the kubelet clusterDomain config item doesn't have "localhost" either. How do I delete this, and is this a deployment error or something else, I have no idea. Thanks for this trouble!
What did you expect to happen?
/etc/resolve.conf
ping result if i use full domain name, thats OK
How can we reproduce it (as minimally and precisely as possible)?
Version 1.30, and deploy with kubeadm, maybe.
Anything else we need to know?
kubelet clusterDomain configure
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)