How to check the status of nodes in k8s?

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

  1. retrieve information about the nodes using kubectl
kubectl get nodes
  1. Provide information about the specified node using kubectl describe command.
kubectl describe node <node-name>
  1. Retrieve the YAML representation of the node with the specified name using the kubectl command.
kubectl get node <node-name> -o yaml

These commands can be executed on the control node of the Kubernetes cluster.

Leave a Reply 0

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


广告
Closing in 10 seconds
bannerAds