Reading the Kubernets documentation it looks to be possible to select a certain range of pods based on labels. I want to select all the pods on one node but I don't want to label each pod on their corresponding node.
Am I missing something from the documentation or is it just not possible to select by node?
If I do:
kubectl get pods \
--output=wide
--namespace=$NS \
--server=$SERVER | head
#=>
NAME READY STATUS RESTARTS AGE NODE
Can any of these headers be used as selector? If yes, how to do it with kubectl
? How to do it with the API?