Top pods by CPU kubectl
CPU-sorted pod usage across all namespaces
kubectl top pods -A --sort-by=cpu
more kubectl
all 73 commands →
Create ServiceAccount token
kubectl create token <sa-name> -n <ns> --duration=1h
Check who can do what (audit)
kubectl auth can-i --list -n <ns>
Delete all pods in namespace
kubectl delete pods --all -n <ns>
Get ingress list
kubectl get ingress -A
Dump all pod YAML to file
kubectl get pods -n <ns> -o yaml > pods-dump.yaml