Tools

Kubernetes Cheat Sheet

Print-ready cheat sheet for Kubernetes, organized for fast lookup, study, and desk-side use

Source
Kubernetes Documentation (kubernetes.io/docs)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • kubectl Basics
  • Pods
  • Deployments
  • Services
  • ConfigMaps & Secrets
  • Namespaces
  • Volumes
  • Ingress
  • Debugging
  • Common Patterns

Cluster Info

kubectl cluster-info
kubectl get nodes
kubectl config current-context
kubectl config use-context my-cluster

Essential Commands

kubectl get <resource>List resources
kubectl describe <resource> <name>Detailed resource info
kubectl create -f file.yamlCreate resource from file
kubectl apply -f file.yamlCreate or update resource
kubectl delete -f file.yamlDelete resource from file
kubectl edit <resource> <name>Edit resource in-place
kubectl api-resourcesList all resource types

Output Formats

-o wideExtra columns (IP, node)
-o yamlFull YAML output
-o jsonFull JSON output
-o jsonpath='{.spec}'Extract specific fields
--sort-by=.metadata.nameSort output by field

Download the full cheat sheet for all sections, formatted for print

Download PDF

Downloads

Choose the treatment that matches how you read