Interview Prep/Kubernetes/Rapid-Fire Commands

How do you find the top CPU and memory consuming Pods and nodes?

IntermediateProductionRapid-Fire Commands
Answer
kubectl top pods -A --sort-by=cpu | head -15
kubectl top nodes
kubectl top pod web-0 --containers

Requires metrics-server.

All Kubernetes questions

More on Rapid-Fire Commands