kubectl top
- The
topcommand allows you to see the resource consumption fornodesorpods. - This command requires
Metrics Serverto 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