Hi,
How to get the node which doesn’t have any taint in Kubernetes via jsonpath?
Hi,
How to get the node which doesn’t have any taint in Kubernetes via jsonpath?
usually taints are added with effect=NoSchedule, with this assumptions below cmd should be able to report all nodes without taint
k get nodes -o=jsonpath=‘{range .items[]}{@.metadata.name}{“\t”}{@.spec.taints[].effect}{“\n”}{end}’ | grep -v NoSchedule