<p>I installed an 8-node kubernetes cluster (1 master + 7 minion) but I faced a networking problem among minions.</p>

<p>I installed my cluster according to <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/fedora/fedora_manual_config.md" rel="nofollow">this step-by-step Fedora manual</a>, so I use Fedora 20 with its testing repository to get kubernetes binaries.</p>

<p>After installing, I wanted to try the <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/README.md" rel="nofollow">guestbook example</a>, but it seems to me there is a problem with the inter-container networking.</p>

<p>Although containers/PODs are in running state and I can reach my 3 frontend containers (via browser) and the redis containers as well (via natcat), but the frontend, which not on the same host with the redis, cannot reach redis master. The frontend's PHP give back network exception.</p>

<p>Can anybody help me why the containers cannot reach each other among the hosts?</p>

<p>I hope I could describe my setup enough accurately and thanks in advance.</p>

<p>The Fedora guide you followed will only get you running on a single machine.  It avoids the issues around setting up networking across nodes.</p>

<p>For kubernetes to work, the following network set up must be satisfied:</p>

<ol>
<li>Every container should be able to talk to every other container, even across nodes.  This means also that the bridge IP range for those containers must not overlap.</li>
<li>Code running on any node that isn't in a container should be able to reach every container (and vise-versa), even across nodes.</li>
<li>It is not necessary (but useful) if computers on the network that aren't part of the cluster can reach the containers directly.</li>
</ol>

<p>There are a lot of ways to achieve this -- for instance the set up for vagrant sets up GRE tunnels between each node.  On GCE we use features of the platform to do the routing.  If you are on physical machines on a switch you can probably just do a big layer 2 network w/ bridges.  A bulletproof way to get started (but perhaps not the most performant, depending on your set up) is to use something like <a href="https://github.com/coreos/flannel" rel="nofollow">flannel</a>.</p>

<p>We are working on making this stuff easier to start up (without using a mess of shell scripts) and are thinking of building something like flannel in so that there is a reasonable default.</p>
