<p>I am preparing <code>dev</code> environment and want to create a single host to be master and worker node for kubernetes.</p>
<p>How can I achieve my goal?</p>

<blockquote>
<p>The <em><strong>master node</strong></em> is responsible for running several Kubernetes processes that are absolutely necessary to run and manage the cluster properly. <a href="https://www.educative.io/edpresso/what-is-kubernetes-cluster-what-are-worker-and-master-nodes" rel="nofollow noreferrer">[1]</a></p>
<p>The <em><strong>worker nodes</strong></em> are the part of the Kubernetes clusters which actually execute the containers and applications on them. <a href="https://www.educative.io/edpresso/what-is-kubernetes-cluster-what-are-worker-and-master-nodes" rel="nofollow noreferrer">[1]</a></p>
</blockquote>
<hr />
<blockquote>
<p><em><strong>Worker nodes</strong></em> are generally more powerful than <em><strong>master nodes</strong></em> because they have to run hundreds of clusters on them. However, <em><strong>master nodes</strong></em> hold more significance because they manage the distribution of workload and the state of the cluster. <a href="https://www.educative.io/edpresso/what-is-kubernetes-cluster-what-are-worker-and-master-nodes" rel="nofollow noreferrer">[1]</a></p>
</blockquote>
<hr />
<p>By removing taint you will be able to schedule pods on that node.</p>
<p>You should firstly check the present taint by running:</p>
<pre class="lang-yaml prettyprint-override"><code>kubectl describe node &lt;nodename&gt; | grep Taints
</code></pre>
<p>In case the present one is master node you should remove that taint by running:</p>
<pre class="lang-yaml prettyprint-override"><code>kubectl taint node &lt;mastername&gt; node-role.kubernetes.io/master:NoSchedule-
</code></pre>
<hr />
<p>References:
<a href="https://www.educative.io/edpresso/what-is-kubernetes-cluster-what-are-worker-and-master-nodes" rel="nofollow noreferrer">[1] - What is Kubernetes cluster? What are worker and master nodes?</a></p>
<p>See also:</p>
<ul>
<li><a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/" rel="nofollow noreferrer">Creating a cluster with kubeadm</a>,</li>
<li>This four similar questions:
<ol>
<li><a href="https://stackoverflow.com/questions/56162944/master-tainted-no-pods-can-be-deployed">Master tainted - no pods can be deployed</a></li>
<li><a href="https://stackoverflow.com/questions/55191980/remove-node-role-kubernetes-io-masternoschedule-taint">Remove node-role.kubernetes.io/master:NoSchedule taint</a>,</li>
<li><a href="https://stackoverflow.com/questions/43147941/allow-scheduling-of-pods-on-kubernetes-master">Allow scheduling of pods on Kubernetes master?</a></li>
<li><a href="https://stackoverflow.com/questions/63967089/are-the-master-and-worker-nodes-the-same-node-in-case-of-a-single-node-cluster">Are the master and worker nodes the same node in case of a single node cluster?</a></li>
</ol>
</li>
<li><a href="https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/" rel="nofollow noreferrer">Taints and Tolerations</a>.</li>
</ul>
