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
Advertisements

Example

$ 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

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.