How can I list the taints on Kubernetes nodes?

前端 未结 11 1561
别那么骄傲
别那么骄傲 2021-01-30 08:47

The docs are great about explaining how to set a taint on a node, or remove one. And I can use kubectl describe node to get a verbose description of one node, inclu

11条回答
  •  猫巷女王i
    2021-01-30 09:19

    kubectl get nodes -o json | jq '.items[].spec'
    

    which will give the complete spec with node name, or:

    kubectl get nodes -o json | jq '.items[].spec.taints'
    

    will produce the list of the taints per each node

提交回复
热议问题