Top pods by CPU
CPU-sorted pod usage across all namespaces
kubectl top pods -A --sort-by=cpu
- tool
- kubectl73 commands
- tags
- podsmonitoring
More kubectl commands
-
kubectl create token <sa-name> -n <ns> --duration=1hGenerate a short-lived bound service account token
-
kubectl auth can-i --list -n <ns>Show all permissions the current user has in a namespace
-
kubectl delete pods --all -n <ns>Force recreation of all pods — useful after ConfigMap changes
-
kubectl get ingress -AAll Ingress resources with hosts and addresses
-
kubectl get pods -n <ns> -o yaml > pods-dump.yamlBackup/inspect entire pod state in a namespace