<ul>
<li>Docker: 1.12.6</li>
<li>rancher/server: 1.5.10</li>
<li>rancher/agent: 1.2.2</li>
</ul>
<p>Tried two ways to install Kubernetes cluster on rancher/server.</p>
<h1>Method 1: Use Kubernetes environment</h1>
<h2>Infrastructure/Hosts</h2>
<p>Agent hosts disconnected sometimes.</p>
<p><img src="https://i.stack.imgur.com/b4kjD.png" alt="enter image description here" /></p>
<h2>Stacks</h2>
<p>All green except <code>kubernetes-ingress-lbs</code>. It has 0 containers.</p>
<p><img src="https://i.stack.imgur.com/JEImk.png" alt="enter image description here" /></p>
<h1>Method 2: Use Default environment</h1>
<h2>Infrastructure/Hosts</h2>
<p>Set some labels to rancher server and agent hosts.</p>
<p><img src="https://i.stack.imgur.com/Ox80Z.png" alt="enter image description here" /></p>
<h2>Stacks</h2>
<p>All green except <code>kubernetes-ingress-lbs</code>. It has 0 containers.</p>
<p><img src="https://i.stack.imgur.com/6yXMa.png" alt="enter image description here" /></p>
<hr />
<p>Both of them have this issue: <code>kubernetes-ingress-lbs</code> 0 services 0 containers. Then can't access Kubernetes dashboard.</p>
<p><img src="https://i.stack.imgur.com/SBn1i.png" alt="enter image description here" /></p>
<p>Why didn't been installed by rancher?
And, is it necessary to add those labels for Kubernetes cluster?</p>

cloud_cloud
<p>Here is RIGHT Kubernetes Cluster deployed on Rancher server:</p>

<p><a href="https://i.stack.imgur.com/nr5ge.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nr5ge.jpg" alt="kubernete-cluster"></a></p>

<p>Turning on the <code>Show System</code>, you can find the service of <code>kubernetes-dashboard</code> under the namespace of <code>kube-system</code>.</p>

<p>Well, by using the version of kubernetes is <code>v1.5.4</code>, you should prepare in advance to pull the below <code>Docker Images</code>:</p>

<p><a href="https://i.stack.imgur.com/6wWZT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6wWZT.png" alt="enter image description here"></a></p>

<p>By reading <a href="https://github.com/rancher/rancher-catalog/tree/v1.6-development/infra-templates/k8s" rel="nofollow noreferrer">rancher/catalog</a> and <a href="https://github.com/rancher/kubernetes-package/tree/master/addon-templates/kubectl" rel="nofollow noreferrer">rancher/kuberetes-package</a>, you can know and even modify the <strong>config files(like docker-compose.yml, rancher-compose.yml and so on)</strong> by yourself.</p>
