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.
This cheat sheet supports the content taught in SEC540: Cloud Native Security and DevSecOps Automation and several SANS Aviata Cloud Security workshops.
Created by Eric Johnson, SANS Author, Instructor, and Principal Security Engineer at Puma Security.