nodeselector kubernetes code example
Example 1: get pods on specific node
kubectl get pods -n $namespace -o wide --field-selector spec.nodeName=$node
Example 2: kubectl to show label of pod
kubectl get pods --show-labels
Example 3: kubectl to show label of pod
kubectl label pods labelex owner=michael