kubectl - Kubernetes CLI Quick Reference

Complete kubectl reference - context switching, pods, rollouts, patching, troubleshooting, output formatting, and RBAC for production clusters.

Cluster Context and Configuration

Shell Autocomplete

Viewing and Finding Resources

Pod Logs, Exec, and Debug

Applying, Diffing, and Dry-Running Manifests

Rollouts, Scaling, and Updates

Patching, Labels, and Annotations

Services and Port-Forwarding

ConfigMaps and Secrets

Troubleshooting Common Failures

Output Formatting Reference

Nodes and Cluster Maintenance

Namespaces and RBAC

Useful Aliases and One-Liners

Frequently Asked Questions

Is the kubectl - Kubernetes CLI Quick Reference cheatsheet free?

Yes — this cheatsheet, like every cheatsheet on DevOps Network, is 100% free with no paywall or sign-up gate.

What does the kubectl - Kubernetes CLI Quick Reference cheatsheet cover?

It's a quick-reference guide for Kubernetes, rated INTERMEDIATE difficulty.

How long does it take to read the kubectl - Kubernetes CLI Quick Reference cheatsheet?

About 14 minutes.