kubernetes cluster pods not able to ping pods on another node

9/3/2018

Setup a kubernetes cluster using three vms on virtualbox. one setup as the master and the other as worker nodes. Deployed pods on the cluster but the pods could not ping any pods that are on a different node but can ping pods on the same node

-- khumalo
docker
kubernetes

1 Answer

9/4/2018

Kubernetes uses a different approach to internal communication. In the basic DNS-operated network there are interchange packets between services not pods. Some of the operations use 'NAT'-ed network built on iptables and not low-level packed exchange. It may be needed to use an overlay network to achieve what you need.

Back to your issue. I may suggest you building services, and then try to ping each other via name using flannel or similar solution. You may find the foundations interesting and dive deeper in the network abstraction layer.

-- d0bry
Source: StackOverflow