<p>The <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint" rel="noreferrer">docs</a> are great about explaining how to set a taint on a node, or remove one. And I can use <code>kubectl describe node</code> to get a verbose description of one node, including its taints. But what if I've forgotten the name of the taint I created, or which nodes I set it on? Can I list all of my nodes, with any taints that exist on them?</p>



<pre class="lang-bash prettyprint-override"><code>kubectl get nodes -o json | jq '.items[].spec'
</code></pre>

<p>which will give the complete spec with node name, or:</p>

<pre class="lang-bash prettyprint-override"><code>kubectl get nodes -o json | jq '.items[].spec.taints'
</code></pre>

<p>will produce the list of the taints per each node</p>
