Closed yckaolalala closed 2 years ago
kubernetes pod cannot ping 10.233.0.1 which is my kubernetes.default ClusterIP
For what it is worth, k8s services do not support ICMP so ping
the command won't work against a clusterIP.
It sounds like you might have a problem with your underlying node network, which is generally not within Calico's control, but is require for Calico to be able to properly network pods.
I'd start by investigating why DHCP matters at all - it shouldn't matter for Calico so long as nodes are getting networked to the underlay properly.
Some similarities to a thread in Calico Users slack.
https://calicousers.slack.com/archives/CPEPF833L/p1635847878074500
when VM network is DHCP mode kubernetes pod cannot ping 10.233.0.1 which is my kubernetes.default ClusterIP this is my coredns log
Expected Behavior
when VM network is not DHCP coredns run normally ifcfg-enp0s3
iptables -L -t filter
Current Behavior
when VM network is DHCP coredns failed with log dial tcp 10.233.0.1:443: connect: no route to host dnstools cannot ping 10.233.0.1
ifcfg-enp0s3
iptables -L -t filter
Context
according to VMs cannot DHCP in Troubleshooting it seems to iptables problem? however my iptables -L -t filter , INPUT, FORWARD, OUTPUT chain are same only difference is in dhcp mode, I did not set IPADDR and GATEWAY
Your Environment