kubctl add label to namespace code example
Example 1: kubectl to show label of pod
kubectl get pods --show-labels
Example 2: kubectl get pod by node
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
kubectl get pods --show-labels
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>