</> ConvertAtlas Developer Tools
Command line

kubectl Cheatsheet

The kubectl commands for everyday Kubernetes work — inspecting what is running, applying changes, and debugging pods.

Inspecting

List pods; add -A for all namespaces.
List multiple resource types.
Detailed info and events.
More columns, including node and IP.

Logs & debugging

View a pod’s logs; -f to follow.
Open a shell inside a pod.
Forward a local port to a pod.
Recent cluster events.

Applying changes

Create or update from a manifest.
Delete resources from a manifest.
Scale a deployment.
Restart pods in a deployment.

Context & namespace

List available clusters.
Switch cluster.
Target a specific namespace.