kubectl top
- The
top
command allows you to see the resource consumption fornodes
orpods
. - This command requires
Metrics Server
to be correctly configured and working on the server.
# Metrics for all pods/nodes
kubectl top pod --all-namespaces --containers=true
kubectl top node --all-namespaces --containers=true
# Metrics for a specificy pod/node
kubectl top pod "pod-name" --containers
kubectl top node "node-name" --containers