Skip to content

Get a list of all nodes in a cluster using kubectl

To get the list of all nodes in kubernetes cluster use the following command:

kubectl get nodes


$ kubectl get nodes
NAME               STATUS   ROLES    AGE   VERSION
pool-20-3x-8tag5   Ready    <none>   57d   v1.20.7
pool-20-3x-8tagp   Ready    <none>   57d   v1.20.7
pool-20-3x-8tags   Ready    <none>   57d   v1.20.7

See also  Installing Metrics Server on Kubernetes

Leave a Reply

Your email address will not be published.

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