<p>For testing purpose, I have enabled pod scheduling on kubernetes master node with the following command</p>

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

<p>Now I have added worker node to the cluster and I would like to stop scheduling pods on master. How do I do that?</p>

<p>You simply taint the node again.</p>

<pre><code>kubectl taint nodes master node-role.kubernetes.io/master=:NoSchedule
</code></pre>
