kubectl top pods

Category: Kubernetes & Containers

kubectl top pods

Show pod CPU and memory usage

Prints live CPU and memory usage for pods in the current namespace, useful for spotting runaway containers. Requires the metrics server addon, for example minikube addons enable metrics-server. Add -A to cover all namespaces.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.