<p>What is <code>kubectl</code> command that lists all nodes that <strong>don't have</strong> <code>NoSchedule</code> taint(s)?</p>
<p>What is <code>kubectl</code> command that lists all nodes that <strong>do have</strong>  <code>NoSchedule</code> taint(s)?</p>

Lukasz Dynowski
<p>You could get nodes and taints with using <code>jsonpath</code>.</p>
<pre><code> kubectl get node -o jsonpath='{range .items[*]}{@.metadata.name}{&quot;\t&quot;}{@.spec.taints[*].effect}{&quot;\n&quot;}{end}'
</code></pre>
<p>Have NoSchedule</p>
<pre><code> kubectl get node -o jsonpath='{range .items[*]}{@.metadata.name}{&quot;\t&quot;}{@.spec.taints[*].effect}{&quot;\n&quot;}{end}' | grep NoSchedule
</code></pre>
<p>Don't Have NoSchedule</p>
<pre><code> kubectl get node -o jsonpath='{range .items[*]}{@.metadata.name}{&quot;\t&quot;}{@.spec.taints[*].effect}{&quot;\n&quot;}{end}' | grep -v NoSchedule
</code></pre>
