Understanding Kubernetes networking, pods with same ip

7/7/2019

I checked the pods in the kube-system namespace and noticed that some pods share the same ip address.The pods that share the same ip address appear to be on the same node.

enter image description here

In the Kubernetes documenatation it said that "Evert pod gets its own ip address." (https://kubernetes.io/docs/concepts/cluster-administration/networking/). I'm confused as to how same ip for some pods came about.

-- edmamerto
kubernetes

1 Answer

7/7/2019

This was reported in issue 51322 and can depend on the network plugin you are using.

The issue was seen when using the basic kubenet network plugin on Linux.

Sometime, a reset/reboot can help

I suspect nodes have been configured with overlapped podCIDRs for such cases.
The pod CIDR could be checked by kubectl get node -o jsonpath='{.items[*].spec.podCIDR}'

-- VonC
Source: StackOverflow