Cheatsheet Pages / kubectl Cheatsheet

How to list every pod in every namespace — kubectl get pods -A

A pod is misbehaving somewhere but you do not know its namespace.

Placeholders follow the cheatsheet: web is a deployment/pod name and app.yaml is your manifest. Most commands act on the current namespace — add -n <ns> to target another one.

kubectl get pods -A           # -A = --all-namespaces; drop it for the current ns only
kubectl get pods -o wide      # also: pod IP and which node it runs on
kubectl get pods -w           # -w = watch: stream changes live (Ctrl+C to stop)
kubectl Cheatsheet one-page card — commands that actually work
The full one-page card — kubectl Cheatsheet. Get the complete cheatsheet on GitHub