A kubectl cheat sheet verified against v1.37 groups more than 100 commands by tasks such as context safety, diagnostics, deployments, debugging, rollouts and cluster administration.
Last updated
The cheat sheet organizes kubectl commands around common Kubernetes jobs rather than resource types. It starts with context safety, emphasizing kubectl config get-contexts and kubectl config current-context before commands that change a cluster, while also recommending visible context and namespace information in the shell prompt.
Its reference sections cover reading cluster state with get and describe, output formats such as YAML and JSONPath, creating and applying resources, logs and exec for failing pods, rollouts and rollbacks, node and namespace administration, and RBAC permission checks. It also highlights kubectl diff -f app.yaml as a way to inspect changes before applying them.
The guide is verified against kubectl v1.37, with v1.37.2 identified as the latest patch in that release line as of December 2026. It says the syntax also works on Kubernetes 1.36 and 1.35 clusters, while recommending that the client remain within one minor version of the cluster under the official version-skew policy.
For troubleshooting, it recommends checking pod status and events before reading logs, using kubectl logs POD --previous for a crashed container, and using kubectl debug with an ephemeral container when a minimal image has no shell. The guide also includes shell completion, the interactive k alias, and commands relevant to the two-hour, 15-to-20-task CKA exam, whose stated pass mark is 66 percent.