How to list the taints on kubernetes nodes

oc get nodes -o json | jq '.items[].spec.taints'
oc get nodes -o json | jq '.items[] | {node_name:.metadata.name,taints:.spec.taints[]?}

oc get nodes -o=custom-columns=NAME:.metadata.name,TAINTS:.spec.taints

get nodes -o=jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.taints}{"\n"}{end}'

References:

  • 1 StackOverflow
Previous
Next