Guys , I always confuse more on jsonpath and filtering based on condition.. If s . . .

Basavraj Nilkanthe:
Guys , I always confuse more on jsonpath and filtering based on condition… If some one can help me to provide what could be my kubectl command to filter below

Check to see how many nodes are ready (not including nodes tainted Noscheduel) and redirect output

Narendra Singh:

kubectl get nodes -o jsonpath="{range .items[*]}{.metadata.name}{\"\t\"}{.spec.taints[?(@.effect=='NoSchedule')].effect}{\"\n\"}{end}" | awk 'NF==1 {print $1}'

Basavraj Nilkanthe:
@Narendra Singh can I get this command somewhere in k8s docs

Basavraj Nilkanthe:
I really dont want to spend more time on JSONPATH

Basavraj Nilkanthe:
apart from basic understanding