Welcome to the Linux Foundation Forum!

Network timeout immediately after first pod deployment

aherisanu Posts: 6
edited April 2020 in LFD259 Class Forum

I have a weird issue that's reproducing on two different computers. I have a VMWare setup with a VM for master and a second VM for the worker.

Immediately after I install kubernetes and I kubectl create the first pod, the network drops on both hosts.
I can't ping my router.

The network setup is set to Bridged.
I'm out of ideas. Doesn't appear to be a firewall issue. If I reboot the hosts, network will work up until kubernetes is up and running.

Network CIDR is:
Pod network CIDR:

Should the pod network CIDR be the same with my network?


  • chrispokorni
    chrispokorni Posts: 2,014

    Hi @aherisanu,

    The 2 network CIDRs should not overlap.

    In addition, I would explore the VMware documentation around networking features. Keep in mind that your Kubernetes nodes need access to the internet, while they should also be able to fully talk to each other (all ports should be visible between nodes, with no firewall blocking any traffic).


  • Hi @chrispokorni,
    thank you for your reply.

    I think I found the issue. I configured each host to use static IP addressing and the problem fixed itself. Weird.

    Thank you for your help.

    herisanu@master:~/work/ch2$ cat /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg
          dhcp4: no
          addresses: []
            addresses: []
      version: 2
  • Nope. That was not it.

  • chrispokorni
    chrispokorni Posts: 2,014

    You are right, that is not it, although it helps to have a static IP at least for your master node.

  • aherisanu
    aherisanu Posts: 6

    Just wanted to leave here a workaround: I've configured the system to use Flannel instead of IP-IP and BGP.

    Tried to disable IP-IP, once all containers are up and running, I can't ping my router anymore. Anything else works.
    Unfortunately I don't have any diagnostics on the router and can't say for sure what it seems to be the problem.
    I see the packets going out, but nothing in.

    If anyone has any ideas i can debug this, I'd be happy to give it a try.

  • chrispokorni
    chrispokorni Posts: 2,014

    Flannel is a lighter alternative to Calico, but in a later chapter, more specifically the exercise on Network Policy, you may run into unexpected/inconsistent results since Flannel does not support the Network Policies feature of Kubernetes.

    I am not familiar with any configuration change on the router, and typically Kubernetes network plugins do not affect routers. The network plugins should only configure the networking of the local node(s). Keep in mind, however, that your hypervisor has some say in the node's networking configuration also, and, if their configuration settings are in conflict, then you'd experience connectivity issues either between the nodes, or between nodes and the internet.


  • aherisanu
    aherisanu Posts: 6

    Thank you for the heads-up @chrispokorni . I've reinstalled the Kubernetes setup to use Calico, but VXLAN instead of IPIP and no BGP.

    It seems that this did the trick in my case.
    This is the link for the ones that might hit the same issues as me.


Upcoming Training