Skip to content

Get details list of pods running on a particular node using kubectl

To get detailed list of pods running on a particular node with kubectl use the following command:

kubectl get pods --field-selector=spec.nodeName=<node-name>

Before running the above command you need to get the list of nodes.



$ kubectl get pods --field-selector=spec.nodeName=pool-20-3x-8tag5

NAME                                  READY   STATUS    RESTARTS   AGE
dnsutils                              1/1     Running   76         3d4h
images-garbage-cleaner-5d7j7          1/1     Running   0          4d2h
retina-iot-backend-5549875cd8-f4pl9   1/1     Running   0          25h
retina-redis-replicas-0               1/1     Running   0          4d18h
traefik-7c77555fdf-lx7cl              1/1     Running   0          17d

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.