Kubernetes Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production; see the section bibliography for the reference material consulted while preparing these pages. |
A single-page, colour-coded summary of the Kubernetes essentials — the control-plane and node components, local
clusters with kind and minikube and kubeconfig contexts, the everyday kubectl commands with output formats and
selectors, the object skeleton with labels and annotations, the workload kinds and rollout commands, probes and
graceful shutdown, the Service types, DNS name format and the Ingress versus Gateway API comparison, a default-deny
NetworkPolicy, ConfigMap and Secret creation and consumption, volumes and PV / PVC / StorageClass, requests, limits
and QoS classes, scheduling controls and PodDisruptionBudgets, autoscaling, RBAC and securityContext hardening
with Pod Security Admission labels, Kustomize and Helm essentials, CRDs and operators, a troubleshooting table and a
strip of what changed since older tutorials — handy for quick memorization or as a printable desk reference
through the downloadable PDF. It reflects Kubernetes 1.37, kubectl
1.37, kind 0.33, Helm 4.3, Kustomize 5.8 and Gateway API 1.6.
For the full explanation, every field, and additional examples, see the dedicated pages:
Foundations — Introduction and Architecture, Getting Started with Kubernetes, kubectl Essentials, and Objects and the Kubernetes API.
Workloads — Pods, Health Probes and Container Lifecycle, ReplicaSets and Deployments, Deployment Strategies, StatefulSets, DaemonSets, Jobs and CronJobs, and Autoscaling.
Services and networking — Services, DNS and Service Discovery, Ingress, Gateway API, Network Policies, and Cluster Networking, CNI and Service Mesh.
Configuration and storage — ConfigMaps, Secrets, Volumes and Ephemeral Storage, and Persistent Volumes and Storage Classes.
Resources, scheduling and security — Resource Management, Scheduling and Disruptions, Dynamic Resource Allocation and Devices, Authentication, Authorization and RBAC, Pod Security, and Admission Control and Policy.
Packaging, delivery and extending — Kustomize, Helm, GitOps and CI/CD, and Custom Resources and Operators.
Operations — Observability: Logging, Metrics and Tracing, Debugging and Troubleshooting, Cluster Setup and Administration, and Managed Kubernetes and Distributions.
Putting it together — Stateful Applications in Practice, Bookshelf End to End, and What’s Changed and Migration.