Check K8s Node Status: Quick Guide

To view the status of nodes in a Kubernetes cluster, you can use the following command:

  1. Use the kubectl command-line tool:
kubectl get nodes

This command will display the status of all nodes, including their names, statuses, roles, and versions.

  1. Obtain detailed information using the kubectl command-line tool.
kubectl describe nodes

This command will display detailed information about each node, including node conditions, capacity, allocated resources, and events.

  1. View the Pods running on the node using the kubectl command line tool.
kubectl get pods --all-namespaces -o wide

This command will display all Pods in the namespace and show the nodes they are on.

  1. Retrieve node log records using the kubectl command-line tool.
kubectl logs <node-name>

This command will display the log records of the specified node, which can help troubleshoot node issues.

Additionally, you can use Kubernetes’ Web UI (Dashboard) to check the status of nodes. Simply access the Dashboard in your browser and navigate to the “Nodes” page to view the nodes’ status, resource usage, and other detailed information.

bannerAds