<p>Hi I am setting up Kubernetes on top of Mesos by following <a href="http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html" rel="nofollow noreferrer">http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html</a> and this is how my current test lab looks like</p>
<ol>
<li>2 Numbers of mesos master with zookeeper</li>
<li>2 Numbers of mesos slaves with docker and flannel installed</li>
<li>Additional mesos slave running Kubernetes-mesos and kubernetes srvices</li>
<li>A server with ETCD service which supports both flannel and kubernetes</li>
</ol>
<p>Can you please let me know if this is enough ?
Below are the two questions I have</p>
<ol>
<li>Do we really need to have the kubernetes master server here to be configured as a mesos slave?</li>
<li>Do we need to install kubernetes package on mesos slaves as well ? The url talks about package installation and configuration only on the kubernetes master..With out kubernetes running on the slaves can the master create pods/services etc on the slaves through mesos scheduler?</li>
</ol>

sumesh kanayi
<p>Regarding Mesos Masters and Zookeeper instances, to have an even number of nodes is not really a good idea, because of the quorum mechanisms involved. My suggestion would be running three nodes of both services.</p>

<p>I assume you want to run this locally? If so, I guess it would make sense to use a preconfigured Vagrant project such as <a href="https://github.com/tobilg/coreos-mesos-cluster" rel="nofollow">https://github.com/tobilg/coreos-mesos-cluster</a> This launches a three node CoreOS cluster with all the Mesos/Zookeeper services already installed, and <code>etcd</code> and <code>flanneld</code> are also already installed on CoreOS itself.</p>

<p>This would mean that you only would have to do the following steps once the cluster is launched:</p>

<ul>
<li><a href="http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html#deploy-kubernetes-mesos" rel="nofollow">http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html#deploy-kubernetes-mesos</a> respectively <a href="https://coreos.com/kubernetes/docs/latest/getting-started.html" rel="nofollow">https://coreos.com/kubernetes/docs/latest/getting-started.html</a></li>
<li><a href="http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html#start-kubernetes-mesos-services" rel="nofollow">http://kubernetes.io/v1.1/docs/getting-started-guides/mesos.html#start-kubernetes-mesos-services</a></li>
</ul>
