Talk With an Expert

Kubernetes Cheat Sheet

Kubernetes Cheat Sheet (PDF, 1.32MB)Published: 03 Mar, 2025

The Kubernetes Cheat Sheet is an essential resource for security teams managing Kubernetes clusters in AWS, Azure, and Google Cloud. Download this guide to keep critical kubectl commands for auditing and managing Kubernetes objects at your fingertips.

The Cheat Sheet includes detailed commands for authenticating to clusters and working with key objects such as namespaces, services, pods, and role and permission bindings. You'll also find commands for gaining shell access to pods, querying logs, installing Calico network policies, viewing Gatekeeper admission controller constraints, installing packages with Helm, and applying Cosign signature policies. Examples also show how to use the command line to vary output (watch, JSON, wide) and search for resources by label.

Meet Your Author

Eric Johnson
Eric Johnson

Eric Johnson

Fellow

Eric is a co-founder and principal security engineer at Puma Security focusing on modern static analysis product development and DevSecOps automation. He is co-author and instructor for three SANS Cloud Security courses.

Read more about Eric Johnson