The memory and CPU utilization of a Kubernetes cluster can be checked by using the following command.
kubectl top nodes
The above command will list all the nodes in the Kubernetes cluster and shows the CPU utilization and memory utilization.
To list all the nodes in a Kubernetes cluster, use the following command.
kubectl get nodes