How can I list the taints on Kubernetes nodes?

前端 未结 11 1558
别那么骄傲
别那么骄傲 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条回答
  •  一向
    一向 (楼主)
    2021-01-30 09:25

    kubectl describe nodes [node_name] | grep 'Taints'
    
    kubectl get nodes -o json | jq '.items[].spec.taints' 
    

    --> this last step will require jq installed ( sudo apt install jq)

提交回复
热议问题