Kubernetes Cheatsheet Online | kubectl Command Reference

Kubernetes Cheatsheet

Essential kubectl commands for pods, deployments, logs, and rollout.

11/11 commands
DevOpsBackend / DevOps

This Kubernetes cheatsheet focuses on practical kubectl commands used during deployments and incident response.

Cluster and Namespace

Current context
kubectl config current-context
List namespaces
kubectl get ns
Set namespace
kubectl config set-context --current --namespace=<namespace>

Workloads

List pods
kubectl get pods -o wide
Describe pod
kubectl describe pod <pod-name>
List deployments
kubectl get deploy
Restart deployment
kubectl rollout restart deploy/<deployment>

Debug and Rollback

Stream logs
kubectl logs -f deploy/<deployment>
Rollout status
kubectl rollout status deploy/<deployment>
Rollout history
kubectl rollout history deploy/<deployment>
Undo rollout
kubectl rollout undo deploy/<deployment>

What Is Kubernetes Cheatsheet?

This Kubernetes cheatsheet focuses on practical kubectl commands used during deployments and incident response.

Pod and deployment commands

Rollout and rollback helpers

Service and namespace quick checks

Key Features of Kubernetes Cheatsheet

Pod and deployment commands

Rollout and rollback helpers

Service and namespace quick checks

How to Use Kubernetes Cheatsheet

Step 1

Pick your namespace first and confirm cluster context

Step 2

Use get and describe before applying rollout changes

Step 3

Use logs and rollout history to diagnose failures

Still need help?

Need a hand with Kubernetes Cheatsheet? Reach out through support or send a feature request with your workflow.

Contact support