title: Kubernetes the hard way - How to set node unschedulable
body: <p>I am provisioning a Kubernetes cluster from scratch (reasons). Its a local setup inside VM, and everything is fine, except the <code>master</code> node is created as schedulable.</p>
  <p>I have tried assigning the <code>master</code> label and appropriate taint to node by passing required arguments to kubelet binary (doesn't solve the problem):</p>
  <pre><code>--register-with-taints=node-role.kubernetes.io/master=:NoSchedule
  --node-labels=master,node-role.kubernetes.io/master=&quot;&quot;
  </code></pre>
  <p>Here is the output from <code>kubectl describe &lt;node&gt;</code>:</p>
  <pre><code>Name:               myNodeName
  Roles:              master
  Labels:             beta.kubernetes.io/arch=amd64
                      beta.kubernetes.io/os=linux
                      kubernetes.io/hostname=myHostName
                      master=
                      node-role.kubernetes.io/master=
  Annotations:        node.alpha.kubernetes.io/ttl=0
                      volumes.kubernetes.io/controller-managed-attach-detach=true
  CreationTimestamp:  Tue, 03 Jul 2018 05:56:53 +0000
  Taints:             node-role.kubernetes.io/master=true:NoSchedule
  Unschedulable:      false
  </code></pre>
  <p>How do I set this node as Unschedulable? The documentation doesn't really specify this (feel free to direct to appropriate part of the documentation, in case I missed something).</p>
  <p>PS: The labels/taints mentioned above were present before the node was created/registered.</p>