calico: Cannot access external ip addresses/network

I am unable to access IP addresses outside the cluster. There’s no problem accessing internal pods/service/ingresses.

$ kubectl run -i -t busybox --rm --image=busybox:latest --restart=Never 
/ # wget http://172.217.22.132
Connecting to 172.217.22.132 (172.217.22.132:80)
wget: can't connect to remote host (172.217.22.132): No route to host

Expected Behaviour

Should be able to access external hosts

Your Environment

  • Calico version 3.16.4
  • k8s 1.19.3 (new installation)
  • Operating System and version: Centos 8 (8.2)

The calico-node pods are showing the following warning. I am not sure if it is related

[WARNING][44] felix/vxlan_mgr.go 467: Failed to set vxlan tunnel device MTU error=invalid argument 

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

I had same problem. As I know the default calico ip range is 192.168.0.0/12 that is conflict by my external ip’s. I created a new calico ip pool range to same as my cluster init range (10.96.0.0/12). After delete old pool (192.168.0.0) access to external ip solved.