Kubernetes flashcards
Run containers across many machines: declare what you want and the cluster keeps it that way.
What is Kubernetes, in one plain sentence?
Kubernetes is a system that runs your apps across many computers and looks after them: it starts them, restarts them when they crash and moves them when a machine fails.
Tap to turn over. Swipe right if you know it, left to see it again.
What you will learn
Start from zero
- What Kubernetes is and why it exists4 cards
- Containers, nodes and pods3 cards
- Key words: manifests and addresses2 cards
- First command and next steps3 cards
Core basics
- Why Kubernetes and how a cluster is built4 cards
- kubectl, contexts and local clusters5 cards
- Manifests, Deployments and images5 cards
- Services, labels and namespaces3 cards
- First troubleshooting2 cards
Next steps
- Configuration and Secrets2 cards
- Services, DNS and traffic in4 cards
- Health probes2 cards
- Resources and QoS3 cards
- Rollouts and rollbacks2 cards
- Persistent storage2 cards
- Jobs, init containers and sidecars3 cards
- Troubleshooting workloads4 cards
Go deeper
- Control plane internals3 cards
- Stateful and per-node workloads2 cards
- Autoscaling2 cards
- Scheduling and placement2 cards
- Security: RBAC, identity, network and pod security4 cards
- Availability, upgrades and maintenance3 cards
- Operators, packaging and GitOps4 cards
- Advanced debugging2 cards
Final test and certificate
10 questions drawn fresh from the whole topic, about 15 minutes. Sign in, score 80% or more and get a free certificate with your name and a public check link anyone can open, such as an employer or a teacher. Not signed in? Try a practice test from the cards.
Take the final testAbout these cards
- Reviewed 26 October 2026
- CoversKubernetes 1.37 (supported: 1.34 to 1.37)Gateway API v1.6
Checked against
Kubernetes at a glance
Kubernetes runs your apps across many computers and keeps them running the way you asked.
Like a harbour master who places every container on a ship and sends a new one when one is lost.
Words you will meet
- Container
- An app packed with everything it needs to run anywhere
- Pod
- The smallest thing Kubernetes runs, wrapping one container
- Node
- One computer in the cluster that runs pods
- Cluster
- A group of computers that Kubernetes manages as one
- Manifest
- A YAML file that says what you want running
- kubectl
- The command you type to talk to the cluster
- Service
- A steady name and address that finds the right pods
The steps
- 1. Start from zero (12 cards): What Kubernetes is, why it exists, and the words you need before Core basics.
- 2. Core basics (19 cards): Desired state, pods, Deployments, Services, labels and the kubectl moves you use from day one.
- 3. Next steps (22 cards): Config and secrets, Service types, traffic in, probes, resources, failure states, rollouts, storage and jobs.
- 4. Go deeper (22 cards): Control plane internals, reconciliation, stateful and node-level workloads, autoscaling, placement, security, disruption and delivery.
All 12 cards in Start from zero
- What is Kubernetes, in one plain sentence?
- Kubernetes is a system that runs your apps across many computers and looks after them: it starts them, restarts them when they crash and moves them when a machine fails.
- Before Kubernetes, what happened when a server died at 3 a.m.?
- Someone was woken up, logged in to machines one by one, and started the app again by hand. Adding more machines for a busy day was slow, manual work too.
- Where do you already meet Kubernetes without seeing it?
- Many large streaming, shopping, travel and payment apps run on it behind the scenes. When an app stays up during a huge sale or replaces a broken part in seconds, it is often doing that work.
- What is a good everyday picture of Kubernetes?
- A harbour master at a busy port. Apps arrive packed in standard boxes, and he decides which ship carries each box, watches them all, and sends a new box if one is lost.
- What are a container and an image?
- A container is an app packed with everything it needs, so it runs the same on any computer, like a packed lunchbox. An image is the saved recipe you start containers from; Docker is the common tool that builds them.
- What are a node, a VM and a cluster?
- A node is one computer that runs your apps. It is often a VM, a pretend computer made by software on a bigger machine. A cluster is a group of nodes that Kubernetes manages as one.
- What is a pod?
- A pod is the smallest thing Kubernetes runs: a wrapper around one container, sometimes with a small helper container beside it. Kubernetes places pods on nodes.
- What do manifest, YAML and desired state mean?
- A manifest is a file saying what you want, such as three copies of my app. It is written in YAML, a simple text format of names and values. That wish is the desired state, and Kubernetes keeps making it true.
- What are an IP address and DNS, in plain words?
- An IP address is a computer's number on a network, like a phone number. DNS is the phone book that turns a name such as
apiinto that number. - Your first tiny win: what does this command show?
kubectlis the tool you type to talk to the cluster,getmeans show me, andpodssays what to list. The output shows each pod and that it is Running.- What do you need before you start?
- A computer with a terminal (the window where you type commands) and Docker installed. That is enough to run a small practice cluster on your own laptop, with no cloud account or bill.
- After this topic, what will you be able to do?
- Read and write manifests, run several copies of an app, give it a steady name with a Service, scale it up for a busy day and find out why a pod will not start.
Kubernetes cheatsheet
Look around
kubectl get pods -A -o wideAll pods with node and IPkubectl get deploy,svc,ing -n billingSeveral kinds at oncekubectl describe pod NAMEDetails plus eventskubectl get pod NAME -o yamlFull live objectkubectl top pods --sort-by=memoryLive usage (metrics-server)kubectl explain deploy.spec.strategyField docs from the cluster
Change things
kubectl diff -f k8s/Preview changeskubectl apply -f k8s/ --server-sideDeclarative applykubectl apply -k overlays/prodApply a Kustomize overlaykubectl set image deploy/api api=IMG:2.5.0Change the imagekubectl rollout status deploy/apiWait for a rolloutkubectl rollout undo deploy/apiBack to previous revisionkubectl rollout restart deploy/apiRestart pods, e.g. after config change
Debug
kubectl logs deploy/api -f --since=10mFollow recent logskubectl logs POD --previousLogs of the crashed containerkubectl exec -it deploy/api -- shShell in a podkubectl port-forward svc/api 8080:80Local tunnel to a Servicekubectl events --types=WarningRecent warningskubectl debug -it POD --image=busybox --target=apiEphemeral debug container
Access and context
kubectl config get-contextsList clusters you can reachkubectl config use-context prodSwitch clusterkubectl config set-context --current --namespace=billingDefault namespacekubectl auth can-i '*' '*' --as=system:serviceaccount:ns:saCheck permissionskubectl drain NODE --ignore-daemonsets --delete-emptydir-dataEmpty a node safelykubectl cordon NODEStop new pods landing on a node
Pod states and what they mean
PendingNot scheduled: resources, taints, volumesContainerCreatingPulling image or mounting volumesImagePullBackOffBad name, no pull secret, rate limitCrashLoopBackOffKeeps crashing; checklogs --previousOOMKilled (exit 137)Over the memory limitRunning 0/1 ReadyReadiness probe failingCompletedJob pod finished with exit 0