Skip to content
Diagnostics and port-forwardingKubernetes

kubectl top

Fetch resource metrics for nodes or pods.

Command
kubectl top nodes

Example usage

Monitor CPU and memory usage across the cluster.

kubectl top nodes
kubectl top pods -n <namespace>

Related tags

Diagnostics and port-forwardingk8skubectlclusters