Site icon installvirtual

Kubernetes get pods on a Specific Node

In this short tutorial, I will show you how to get all the pods on the specific kubernetes nodes using kubectl. Sometimes we need to check all the pods running on a node to monitor or troubleshoot. This command is really handy to get all the pods on a specific node.

You might also like: https://installvirtual.com/grafana-dashboard-for-kubernetes-deployment/

Kubernetes get pods on a Specific Node

Just execute the following command and replace <node> with your node name. It will list all the pods on a specific node in all namespaces.

kubectl get pods --all-namespaces --field-selector spec.nodeName=<node> -o wide

Please let me know if you like this tutorial.

Please let me know if you need more commands like this. Comment down below.

Check out other articles.

 

Exit mobile version