I have a big cluster on Openshift Platform. I want to find all the projects or pods that are using NodeSelector. Is there a command for that? How can I make a list of all the projects with NodeSelectors?
I have a command for listing all the services using nodeport. But I could not do it for nodeSelector.
You can use jq for that:
will return something like
for all pods that are using a node selector.