<p>I want to write tests for HA k8s with multi-master setup.</p>

<p>I have read at <a href="https://stackoverflow.com/a/37874706/449347">this answer</a>   it is possible to allow user pods to be scheduled to a master node.  I am bit hazy if it is ok to do this for multiple (or rather all) my masters. </p>

<p>I've read at <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/" rel="nofollow noreferrer">k8s HA docs</a>  ...</p>

<blockquote>
  <p>For both methods you need this infrastructure:<br>
  Three machines that
  meet kubeadm’s minimum requirements for the masters<br>
  Three machines
  that meet kubeadm’s minimum requirements for the workers  </p>
</blockquote>

<p>Does this mean  </p>

<ul>
<li>minimum 3 hosts in total (i.e. sensible to run/test with each host as combined master and worker)?</li>
<li>minimum 6 hosts for testing, i.e. 3 x masters and 3 x workers ?</li>
</ul>

k1eran
<p>yes, you can schedule user work loads on masters. You need to taint the masters to allow workloads to be scheduled. user the below command to taint masters</p>

<pre><code>kubectl taint nodes --all node-role.kubernetes.io/master-
</code></pre>
