How can I list the taints on Kubernetes nodes?

前端 未结 11 1541
别那么骄傲
别那么骄傲 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:22

    PowerShell:\> kubectl describe nodes | findstr "Taint Hostname"

    or

    Bash# kubectl describe nodes | egrep -hi "Taint|Hostname"

    This command is mad easy to remember

    Output looks like this:

    Taints:               
      Hostname:   aks-agentpool-30208295-0  
    Taints:                 
      Hostname:  aks-agentpool-30208295-1
    ...
    

提交回复
热议问题