Cheatsheet Pages / kubectl Cheatsheet

How to list the clusters you can reach — kubectl config get-contexts

You work with several clusters and want to see which ones you can reach and which is active.

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 config get-contexts        # the * marks the current one
kubectl config current-context     # just print the current context name
kubectl Cheatsheet one-page card — commands that actually work
The full one-page card — kubectl Cheatsheet. Get the complete cheatsheet on GitHub