Skip to content

Cheat Sheet

kubectl

Get number of pods per node.

kubectl get pods --all-namespaces -o wide --sort-by="{.spec.nodeName}" | awk '{print $8}' | sort | uniq  -c