Kubernetes & kubectl Cheat Sheet/Show node resource usage

Requires Metrics Server; shows node CPU and memory usage.

Section: Logs, Events, and Watches

Show node resource usage

bash
bash
kubectl top nodes
Explanation

Requires Metrics Server; shows node CPU and memory usage.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Logs, Events, and Watches
Show pod resource usage
Requires Metrics Server; shows CPU and memory usage.
OpenIn sheetbashsame section
Get pod logs
Print the current container logs.
OpenIn sheetbashsame section
Follow pod logs
Stream logs in real time.
OpenIn sheetbashsame section
Get logs for named container
Read logs from a specific container in a multi-container pod.
OpenIn sheetbashsame section
Get previous container logs
Read logs from the previous crashed container instance.
OpenIn sheetbashsame section
Get logs for label selector
Aggregate logs across matching pods.
OpenIn sheetbashsame section