<p>What CLI command can I type to remove the <code>node-role.kubernetes.io/master:NoSchedule</code> taint from the master node in a Kubernetes cluster?  </p>

<p>The following command is failing:  </p>

<pre><code>[lnxcfg@ip-10-0-0-193 ~]$ kubectl taint nodes $(kubectl get nodes --selector=node-role.kubernetes.io/master | awk 'FNR==2{print $1}') key:node-role.kubernetes.io/master:NoSchedule-
error: invalid taint effect: node-role.kubernetes.io/master, unsupported taint effect
</code></pre>

<p>As you can see below, I am able to get the name of the master node successfully by using the following command, which is also embedded in the above failing command:  </p>

<pre><code>[lnxcfg@ip-10-0-0-193 ~]$ kubectl get nodes --selector=node-role.kubernetes.io/master | awk 'FNR==2{print $1}'
ip-10-0-0-193.us-west-2.compute.internal
</code></pre>

<p>This is an AWS Linux 2 node hosting the master node of a single master Kubernetes cluster.  </p>

<pre><code>kubectl taint nodes $(hostname) node-role.kubernetes.io/master:NoSchedule-
</code></pre>

<p>But you can also schedule on master node without removing the taint:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
...
  spec:
...
    spec:
...
      tolerations:
        - key: "node-role.kubernetes.io/master"
          effect: "NoSchedule"
          operator: "Exists"
</code></pre>
