Michael
Michael

Reputation: 566

Multi host Container communication with kubernetes and flannel

I am following the following guide

http://kubernetes.io/v1.0/docs/getting-started-guides/fedora/flannel_multi_node_cluster.html

I get all the way to the very last step when it says to ping a container on another host from a separate container on another host. I am supposed to see something like this (like it shows in the documentation)

bash-4.3# ping 18.16.90.4
PING 18.16.90.4 (18.16.90.4) 56(84) bytes of data.
64 bytes from 18.16.90.4: icmp_seq=1 ttl=62 time=0.275 ms
64 bytes from 18.16.90.4: icmp_seq=2 ttl=62 time=0.372 ms

I get no response on the ping, I don't know how to troubleshoot this and where I should start.

Upvotes: 0

Views: 425

Answers (1)

brendan
brendan

Reputation: 4136

The first thing to try is to ping the container IP from outside the container, but on a different machine. Then try typical network debugging tools like 'traceroute', make sure traffic is getting into the flannel bridge.

Also, use 'ifconfig' to make sure that the settings for the docker0 bridge match the settings that flannel created in its config file.

Upvotes: 1

Related Questions