Track
Kubernetes & Operations lessons
52 short lessons on Kubernetes & Operations. Each one starts from a real situation, shows how it works, and ends with a quiz. Free to read.
All 52 lessons
- What Kubernetes is and why one container is not enoughBeginner · 5 min
One container on one machine is easy. Fifty containers on ten machines that fail at random is a different job, and Kubernetes is the program that does it.
- Cluster architecture: control plane, nodes, kubelet and etcdBeginner · 6 min
You type one kubectl command and three containers appear on machines you never named. Six small programs made that happen, and knowing which one failed is most of…
- kubectl: get, describe, logs, exec, apply and namespacesBeginner · 5 min
Six verbs and one flag cover most of a Kubernetes day. The flag, -n, is also the reason a healthy app can look missing.
- Pod lifecycle and phases: Pending, Running, CrashLoopBackOffBeginner · 5 min
kubectl get pods prints one word per Pod, but that word is not the Pod's phase. Knowing the difference tells you whether to look at scheduling, the image, or your own…
- kubectl rollout: status, history and undoBeginner · 5 min
Three subcommands turn a bad deploy into a two-minute fix, and one limit of rollback, what it does not revert, is the part interviewers ask about.
- NodePort, LoadBalancer and how traffic enters the clusterBeginner · 6 min
A ClusterIP stops at the cluster edge. Two more Service types, NodePort and LoadBalancer, open it, each stacked on the one before, and the one most teams reach for…
- Service discovery and CoreDNSBeginner · 5 min
Inside a Pod, orders resolves and orders.prod resolves, but a name like api.partner.com quietly costs four lookups. The reason is three lines in a file the kubelet…
- ConfigMaps and SecretsBeginner · 6 min
The same image runs in staging and production because settings live outside it. Two details cause most incidents: environment variables never update in a running Pod…
- Resource requests, limits and QoS classesBeginner · 6 min
A request is a reservation the scheduler uses, a limit is a ceiling the kernel enforces, and they fail in opposite ways: one leaves Pods Pending on a nearly idle node…
- Volumes, PersistentVolumes and PVCsIntermediate · 6 min
A container's filesystem disappears with the container, a volume can outlast it, and a PersistentVolumeClaim is how a Pod asks for disk without knowing where the disk is.
- Debugging order: Pending, ImagePullBackOff, CrashLoopBackOff, OOMKilledIntermediate · 6 min
Four status words, four different places to look. A fixed order of commands, get, describe, logs, then exec, finds the cause in minutes and, equally important, does not…
- Capstone: ship an app to Kubernetes, then fix three broken onesIntermediate · 5 min
Deploy a small app with probes, limits and config, then diagnose three deliberately broken copies against a clock. The score is your method and what you say when you…
- Pods: containers that share a network and storageBeginner · 6 min
A Pod is not a container with a new name. It is a small shared environment, which is why a log shipper can read your app's files and a bare Pod does not come back when…
- Deployments: replicas and rolling updatesBeginner · 5 min
A Deployment never edits a running Pod. It starts a second ReplicaSet and moves traffic across at a speed you control, which is why a bad image tag on Friday costs you…
- StatefulSet vs DeploymentIntermediate · 6 min
A Deployment treats Pods as interchangeable. A StatefulSet gives each Pod a name, an address and a disk that survive replacement, which is what a database replica needs…
- DaemonSetBeginner · 4 min
DaemonSet schedules a Pod on qualifying nodes.
- NoSchedule taintBeginner · 4 min
NoSchedule taint blocks new Pods lacking a matching toleration.
- Node affinityBeginner · 4 min
Node affinity constrains or prefers node labels.
- Pod anti-affinityBeginner · 4 min
Pod anti-affinity spreads workloads relative to other Pods.
- Topology spreadBeginner · 4 min
Topology spread balances replicas across topology domains.
- Services: ClusterIP and stable namesBeginner · 5 min
Pod IPs change on every deploy, so nothing should ever call one. A Service is a fixed address that follows whichever Pods are ready, and one wrong label silently…
- EndpointSliceBeginner · 4 min
EndpointSlice tracks network endpoints backing Services.
- Ingress: host and path routing into the clusterBeginner · 5 min
One load balancer, many Services, and a rule table in YAML. The part that surprises people is that the Ingress object does nothing until a controller exists to read it.
- NetworkPolicyBeginner · 4 min
NetworkPolicy specifies allowed ingress and egress.
- Readiness probes: when to send trafficIntermediate · 5 min
A container that has started is not a container that can serve. The readiness probe is the switch that keeps a warming Pod out of the Service, and it is also what makes…
- Liveness probes: when to restartIntermediate · 6 min
Some failures leave a process running and useless. A liveness probe is how Kubernetes finds those, and a careless one is how Kubernetes turns a slow database into a…
- Startup probeBeginner · 4 min
Startup probe delays liveness and readiness until boot completes.
- Control plane architectureBeginner · 5 min
Kubernetes control-plane components coordinate desired state and node assignment; kubelets run Pods on nodes.
- etcd durabilityIntermediate · 4 min
Explain why etcd must write every request to disk on a majority of members before it acknowledges it, and why slow disks can trigger elections across the cluster.
- API server watchesIntermediate · 4 min
Explain how the API server streams changes through watches that resume from a resourceVersion, and why a 410 Gone response means the client must list again and rebuild…
- Scheduler filteringIntermediate · 4 min
Explain how the kube-scheduler filters nodes by feasibility, why it counts requests rather than live usage, and how to read the reasons on a Pending Pod.
- Scheduler scoringIntermediate · 4 min
Explain how the scheduler scores the nodes that survive filtering, how plugin weights change the winner, and why equal nodes can receive Pods unevenly across a rollout.
- Taints and tolerationsIntermediate · 4 min
Explain how taints repel Pods, how tolerations allow them onto tainted nodes, and how NoExecute evicts running Pods after an optional time limit set by the workload.
- Topology spread constraintsIntermediate · 5 min
Topology spread constraints keep matching pods evenly spread across zones, and they explain why a hard rule can leave pods Pending when one zone has no room.
- Requests and limitsIntermediate · 4 min
Requests and limits decide where a pod lands and how much CPU or memory it can use, and a CPU limit can slow a service even when the node sits idle.
- Pod QoSIntermediate · 4 min
A pod's QoS class follows its requests and limits, and that class decides the order in which the kubelet evicts pods when node memory runs short.
- OOMKilled diagnosisAdvanced · 4 min
An OOMKilled exit means the kernel ended a container for passing its memory limit, and the memory that counts includes more than the JVM heap.
- CrashLoopBackOff diagnosisAdvanced · 4 min
CrashLoopBackOff is a waiting state between restarts, and the cause sits in the logs and exit reason of the run that failed, not in the status itself.
- Readiness probesAdvanced · 4 min
A readiness probe decides whether a pod receives Service traffic, and a narrow probe keeps a shared dependency failure from removing every pod at once.
- Startup probesAdvanced · 4 min
A startup probe gives a slow app its own boot budget, so liveness checks can stay tight once the app is running.
- Service and EndpointSliceAdvanced · 4 min
A Service sends traffic only to the endpoints in its EndpointSlices, so a selector or port name mismatch can leave Ready pods with no backends.
- kube proxy and eBPFAdvanced · 4 min
kube-proxy turns Service IPs into node rules, and an eBPF replacement moves that work elsewhere, so you must know which component owns Service traffic before you debug…
- CoreDNS debuggingAdvanced · 5 min
Cluster DNS answers name lookups for pods, and a high ndots value can multiply queries so that overloaded CoreDNS shows up as five-second delays.
- NetworkPolicy semanticsAdvanced · 4 min
NetworkPolicy isolates a pod only once a selecting policy lists a direction, allows add together, and nothing happens at all unless the network plugin enforces them.
- Ingress controllersAdvanced · 4 min
An Ingress is only a set of routing rules, and it serves traffic only after an ingress controller accepts it and publishes an address.
- Gateway APIAdvanced · 4 min
Gateway API splits gateways, owned by the platform team, from routes, owned by app teams, and status conditions show whether the two have connected.
- PVC lifecycleAdvanced · 4 min
A PersistentVolumeClaim binds to a volume through a fixed lifecycle, and its reclaim policy decides whether the data survives when the claim goes.
- CSI driversAdvanced · 4 min
CSI drivers let storage vendors plug into Kubernetes from outside core, and claims and pods work only when the right driver is installed on every node that needs it.
- StatefulSetsAdvanced · 4 min
A StatefulSet gives each pod a stable name and its own claim, so a pod's identity and its data stay together, including after a node failure.
- HPA VPA and KEDAAdvanced · 4 min
HPA scales replica counts from a metric ratio, and the metric you pick decides whether it tracks real work, such as a queue backlog, or only CPU.
- PDB and safe drainingAdvanced · 4 min
A PodDisruptionBudget limits how many pods of an app can be evicted at once during planned work, such as a node drain, and the Eviction API enforces it.
- Service and EndpointSlice: operational verificationAdvanced · 4 min
Endpoint state during a rollout shows when a pod stops receiving traffic, and matching it against client errors shows whether the fault is in shutdown or propagation.