Cannot access pod services from another pod

lgomesd
July 22

Hey,

I´m using kube-proxy in iptables mode.

The CIDR is the kubernetes default, i didn´t change nothing related with CIDR.

There isn’t really a kubernetes default. This gets passed into
kube-apiserver, and all of the examples use a /16 or smaller. Can you
check that?

For the flannel i used --pod-network-cidr=10.244.0.0/16 in the kubeadm init.

I have figured out that the pods can comunicate each others by the ClusterIP services ports and directly. Call the nodePorts service type doesn´t work.

I was using telnet to do the tests but telnet didn´t respond, when i tried test using wget or curl i got the response of the destination pod normally.

That´s was strange. I´m studying and try to understand why telnet doesn´t work for test propose and why NodePort can´t be called by a pod (calling NodePort from out of the cluster works fine).

That is strange, maybe a tcpdump would help?