Network timeout immediately after first pod deployment
Hi,
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: 192.168.1.0/24
Pod network CIDR: 192.168.0.0/16
Should the pod network CIDR be the same with my network?
Comments
-
Don't think I need a different Pod network by reading:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network0 -
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).
Regards,
-Chris0 -
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 network: ethernets: ens33: dhcp4: no addresses: [192.168.1.20/24] gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.1] version: 2 herisanu@master:~/work/ch2$0 -
Nope. That was not it.
0 -
You are right, that is not it, although it helps to have a static IP at least for your master node.
0 -
Just wanted to leave here a workaround: I've configured the system to use Flannel instead of IP-IP and BGP.
https://docs.projectcalico.org/getting-started/kubernetes/flannel/flannelTried 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.
0 -
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.
Regards,
-Chris0 -
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.
https://docs.projectcalico.org/getting-started/kubernetes/installation/config-options#switching-from-ip-in-ip-to-vxlan1
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 754 Linux Foundation IT Professional Programs
- 374 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 977 Programming and Development
- 310 Kernel Development
- 649 Software Development
- 990 Software
- 382 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)