Learn
62 lessons in 9 tracks, in the order they build on each other. Ground floor and Field context are optional context. Every lesson is open to read, and each one turns solid once you pass its checks.
Start here
Containers in Kubernetes terms
The first lesson on the path. Each lesson builds on the ones before it, and every one stays open to read.
0 of 55 lessons on the path reconciled
Optional context lessons are not counted.
Every track
- Locked
- Ready to start
- In progress
- Reconciled
Arrow keys move between lessons; Enter opens one.
Ground floor
Optional context0 of 3 reconciledThe two prerequisites, containers and DNS, in the terms Kubernetes uses for them.
The API and the loop
0 of 8 reconciledHow the cluster stores desired state, how you talk to it, and how controllers converge on it.
- Desired state and the reconcile loop, locked
- Control plane and nodes, locked
- API machinery: groups, versions and resource versions, locked
- kubectl and kubeconfig, locked
- Namespaces, labels and annotations, locked
- Declarative management and server-side apply, locked
- Owners, finalizers and garbage collection, locked
- Custom resources and operators, locked
Pods and workloads
0 of 7 reconciledThe pod, its lifecycle, and the controllers that run pods for services, node agents and batch.
Scheduling and nodes
0 of 10 reconciledHow pods land on nodes, what they are guaranteed there, and what happens when a node runs short or goes away.
- Requests, limits and quotas, locked
- QoS classes and node-pressure eviction, locked
- cgroups, memory pressure and the OOM killer, locked
- How the scheduler places a pod, locked
- Affinity, taints and tolerations, locked
- Topology spread constraints, locked
- Priority and preemption, locked
- Nodes and the kubelet, locked
- Disruptions and Pod
Disruption Budgets, locked - Cluster autoscaling, locked
Networking
0 of 8 reconciledHow pods reach each other, how Services and Gateways route to them, and where DNS and policy fit.
Config, storage and state
0 of 6 reconciledGetting configuration, secrets and durable data into pods, and running workloads that keep state.
Security
0 of 6 reconciledWho can call the API, what they may do, what pods may do, and what is allowed to run.
Operate and ship
0 of 10 reconciledSeeing, debugging, scaling, upgrading, backing up and delivering to a running cluster.
- Metrics, logs, events and traces, locked
- Horizontal pod autoscaling, locked
- Right-sizing and in-place resize, locked
- A troubleshooting method, locked
- kubectl debug and ephemeral containers, locked
- Debugging from the node: crictl, journalctl and nsenter, locked
- Upgrades and version skew, locked
- etcd, backup and disaster recovery, locked
- GitOps with Argo CD, locked
- Progressive delivery, locked
Field context
Optional context0 of 4 reconciledReliability practice and platform topics around a cluster, kept short and optional.
Track by track
What each track covers and what each lesson is about, about 24 hours 7 minutes of reading in all.
Ground floor
Optional context
The two prerequisites, containers and DNS, in the terms Kubernetes uses for them.
- Containers in Kubernetes terms, not reconciledAn image is content-addressed layers plus a manifest, and a container is a process the kubelet asks a CRI runtime to start. This is the part of the container toolchain a pod spec controls.
- Isolation: namespaces, cgroups and the runtime, not reconciledA container is an ordinary Linux process that namespaces fence in and cgroups meter. Learn which boundaries a pod shares, how limits are enforced, and how Docker's networks and volumes map onto pods.
- DNS in Kubernetes terms, not reconciledEvery Service name a pod uses goes through resolv.conf, search domains and CoreDNS before it becomes an IP. Learn the path, the records, ndots, caching and the ways cluster DNS fails.
The API and the loop
How the cluster stores desired state, how you talk to it, and how controllers converge on it.
- Desired state and the reconcile loop, not reconciledKubernetes is an API that stores what should exist, plus controllers that keep comparing that record with the world and acting on the difference.
- Control plane and nodes, not reconciledEach control-plane component owns one job and works through the API server; each node runs a kubelet, a container runtime and usually kube-proxy. Knowing who owns what tells you what breaks when a piece fails.
- API machinery: groups, versions and resource versions, not reconciledEvery object lives at a predictable REST path, carries the same metadata, and changes under optimistic concurrency. Controllers follow those changes with list and watch instead of polling.
- kubectl and kubeconfig, not reconciledkubectl finds its cluster, identity and namespace in kubeconfig, reads objects in whatever shape you ask for, and can show a change before making it. Know which context a command uses before you run it.
- Namespaces, labels and annotations, not reconciledNamespaces scope names and policy, labels identify objects so that selectors can find them, and annotations carry everything else. Most of the wiring between Kubernetes objects is a label selector.
- Declarative management and server-side apply, not reconciledkubectl apply turns a manifest into a merge against the live object. Client-side apply remembers your last manifest in an annotation; server-side apply records which manager owns each field and refuses silent overwrites.
- Owners, finalizers and garbage collection, not reconciledA delete starts a process. Dependents name their owners, the garbage collector cascades the delete, and finalizers hold an object until its cleanup is done, which is why things sit in Terminating.
- Custom resources and operators, not reconciledA CustomResourceDefinition adds a resource type to the API with schema validation, status and versions. An operator is the controller that gives that type behaviour, reconciling each object toward what its spec asks for.
Pods and workloads
The pod, its lifecycle, and the controllers that run pods for services, node agents and batch.
- Pod anatomy, not reconciledA pod is one or more containers scheduled together onto one node, sharing a network namespace and volumes. Learn the fields of a pod spec, what the containers share, and what owns pods in production.
- Pod lifecycle, restarts and termination, not reconciledRead a pod's phase, container states and conditions, predict crash-loop back-off, decode exit codes, and shut a container down without dropping requests.
- Init containers and native sidecars, not reconciledSequence setup work with init containers, run helpers as native sidecars that start first and stop last, and let Jobs finish without a helper holding them open.
- Probes: startup, readiness and liveness, not reconciledChoose startup, readiness and liveness probes, configure all four mechanisms with sensible timing, and predict what each failure does to traffic and restarts.
- Deployments and rolling updates, not reconciledA Deployment turns each change to its pod template into a new ReplicaSet, then trades pods from old to new at a pace set by maxSurge, maxUnavailable and readiness.
- DaemonSets, not reconciledA DaemonSet runs one copy of a pod on every eligible node, follows nodes as they join and leave, and tolerates the node trouble that would push other pods away.
- Jobs and CronJobs, not reconciledA Job runs pods until enough of them succeed and decides what a failure costs; a CronJob creates Jobs on a schedule in a time zone you name.
Scheduling and nodes
How pods land on nodes, what they are guaranteed there, and what happens when a node runs short or goes away.
- Requests, limits and quotas, not reconciledRequests decide where a pod fits, limits decide what the kernel enforces, and LimitRanges and ResourceQuotas set the rules for a whole namespace. Learn to predict throttling, OOM kills and refused pods.
- QoS classes and node-pressure eviction, not reconciledEvery pod gets a QoS class from its requests and limits, and every node keeps memory and disk back for itself. Learn how the kubelet picks pods to evict under pressure, and how that differs from a kernel OOM kill.
- cgroups, memory pressure and the OOM killer, not reconciledRequests and limits end up as files in a cgroup tree on the node. Read them, see which process the kernel kills first, and tell a kernel OOM kill from a kubelet eviction by the evidence each leaves.
- How the scheduler places a pod, not reconciledkube-scheduler takes one pending pod at a time through a queue, a set of filters, a round of scoring and a bind. Learn each stage, read a FailedScheduling message node by node, and hold pods back with scheduling gates.
- Affinity, taints and tolerations, not reconciledNode selectors and affinity pull pods toward nodes, pod affinity places pods relative to each other, and taints push pods away unless they tolerate them. Learn to combine them into dedicated nodes and to retire a node with NoExecute.
- Topology spread constraints, not reconciledTopology spread constraints keep a workload's replicas balanced across zones and nodes, as a hard filter or a soft preference, and they hold only at the moment each pod is scheduled.
- Priority and preemption, not reconciledA PriorityClass gives pods an integer rank. The scheduler tries higher-ranked pods first and, when nothing fits, evicts lower-ranked pods to make room, honouring PodDisruptionBudgets only when it can.
- Nodes and the kubelet, not reconciledA Node object is the kubelet's report on one machine. Learn to read it, take a node out of service with cordon and drain, and predict what happens to pods when a node shuts down or disappears.
- Disruptions and PodDisruptionBudgets, not reconciledA PodDisruptionBudget limits how many of an application's pods voluntary evictions may take down at once. It gates the Eviction API and nothing else, so deletes, rollouts and node failures pass straight through it.
- Cluster autoscaling, not reconciledNode autoscalers add nodes when pods cannot be scheduled and remove nodes whose pods fit elsewhere. Cluster Autoscaler resizes node groups; Karpenter launches the instance each batch of pods needs.
Networking
How pods reach each other, how Services and Gateways route to them, and where DNS and policy fit.
- The pod network model, not reconciledEvery pod gets its own IP and reaches every other pod without NAT. Learn what a CNI plugin does when a pod starts, how packets cross nodes, and which ranges pods, Services and nodes draw from.
- Services, not reconciledA Service gives a changing set of pods one stable name and virtual IP. Choose a Service type, wire ports correctly, decide where traffic may go and what source address it keeps, and recognise a Service with no endpoints.
- EndpointSlices and kube-proxy, not reconciledHow a Service's selector becomes EndpointSlices, what the ready, serving and terminating conditions mean, why Endpoints is deprecated, and how kube-proxy's iptables or nftables rules turn a cluster IP into a pod.
- Following a packet through the node, not reconciledFollow one request from a client pod to a Service on a kind node, through the veth, the routing table, kube-proxy's DNAT, conntrack, kindnet's policy queue and the masquerade rules, reading each with the command that shows it.
- Cluster DNS with CoreDNS, not reconciledEvery pod resolves names through CoreDNS and a search list the kubelet writes. Learn the names Kubernetes publishes, read a Corefile, cut the cost of ndots:5, and debug resolution from inside the cluster.
- Gateway API and the frozen Ingress API, not reconciledGateway API splits north-south routing into a GatewayClass, Gateways and Routes owned by different teams. It is where Kubernetes routing grows, while the Ingress API stays frozen.
- NetworkPolicies, not reconciledPod traffic is open until a NetworkPolicy selects a pod. From then on only the traffic some policy allows gets through, in that direction, and only if the network plugin enforces it.
- gRPC, service mesh and mTLS, not reconciledA Service balances connections, and gRPC sends every request down one. Fix that with client-side balancing or a layer 7 proxy, and know what a mesh adds before you adopt one.
Config, storage and state
Getting configuration, secrets and durable data into pods, and running workloads that keep state.
- ConfigMaps, not reconciledA ConfigMap keeps non-secret settings out of the image. The kubelet hands them to containers as environment variables or files, and only a volume mounted at a directory follows an update.
- Secrets and external secret stores, not reconciledA Secret is a ConfigMap with a type, tmpfs mounts and its own RBAC resource. Base64 is not protection; encryption at rest, narrow access and mounted files are.
- Volumes inside a pod, not reconciledVolumes that live and die with the pod. emptyDir scratch space, projected files, the downward API, OCI images as data, per-pod claims, and why hostPath is a node-level risk.
- PersistentVolumes, claims and StorageClasses, not reconciledStorage that outlives the pod. A claim asks for capacity and an access mode, a StorageClass provisions it through a CSI driver, and a PersistentVolume holds the data until its reclaim policy says otherwise.
- StatefulSets, not reconciledReplicas that are not interchangeable. A StatefulSet gives each pod a fixed ordinal, a DNS name through a headless Service and its own claim, and changes them in a predictable order.
- Snapshots, clones and volume attributes, not reconciledPoint-in-time copies of a volume, restored or cloned into fresh claims through dataSource, group snapshots across several volumes, and VolumeAttributesClass for changing a live volume's performance.
Security
Who can call the API, what they may do, what pods may do, and what is allowed to run.
- Authentication and service accounts, not reconciledKubernetes has no user objects. People arrive with credentials an authenticator checks; workloads arrive as ServiceAccounts with short-lived, audience-bound tokens or X.509 pod certificates, stable in 1.37.
- RBAC, not reconciledFour objects decide what every identity may do. Rules only add permissions, bindings set the scope, and a few verbs and resources quietly grant far more than they appear to.
- Pod security: securityContext and Pod Security Admission, not reconciledA pod's securityContext says what its processes may do on the node. The Pod Security Standards name three levels of that, and Pod Security Admission enforces them per namespace with three labels.
- Admission control and policy, not reconciledEvery write passes mutating and then validating admission after authorization. CEL policies run inside the API server; webhooks call out over TLS and fail closed by default.
- Image supply chain, not reconciledA pod runs whatever bytes its image reference resolves to. Pin digests, keep images small, scan them, sign them, verify signatures at admission and control which registries pods may pull from.
- Audit logging and runtime security, not reconciledThe audit log records who asked the API server to do what; runtime detection records what processes did after admission. Write a policy that keeps the right events, investigate with them, and respond without destroying evidence.
Operate and ship
Seeing, debugging, scaling, upgrading, backing up and delivering to a running cluster.
- Metrics, logs, events and traces, not reconciledFour signals tell you what a cluster and its workloads are doing. Learn where each one comes from, how long Kubernetes keeps it, and which tool answers which question, from kubectl top to Prometheus and OpenTelemetry.
- Horizontal pod autoscaling, not reconciledThe HorizontalPodAutoscaler changes a workload's replica count to hold a metric at a target. Learn its formula, the metrics it can use, how behavior and tolerance shape it, and why its targets read unknown.
- Right-sizing and in-place resize, not reconciledRequests decide placement and cost; limits decide how pods fail. Learn to resize a running pod in place, choose which changes restart a container, run the Vertical Pod Autoscaler, and size requests from usage.
- A troubleshooting method, not reconciledMost failures announce themselves in a status reason, an event or a log line. Learn a fixed order of commands, what each status reason means, how to debug a Service hop by hop, and how to spot a cluster-wide fault.
- kubectl debug and ephemeral containers, not reconciledMinimal images leave nothing to exec into, and crash loops never stay up. kubectl debug brings tools in as an ephemeral container in a running pod, a modified copy of a pod, or a pod in a node's host namespaces.
- Debugging from the node: crictl, journalctl and nsenter, not reconciledWhen a kubelet stops reporting, kubectl shows the last status it sent and cannot reach the node for logs. The node still has the kubelet's journal, the runtime's containers and their logs, and every pod's namespaces.
- Upgrades and version skew, not reconciledKubernetes ships three minors a year and patches each for about 14 months, so every cluster upgrades often. The skew policy fixes the order, and deprecated APIs and node drains decide whether an upgrade is boring.
- etcd, backup and disaster recovery, not reconciledetcd holds every object in the cluster and survives only while a quorum of members does. Snapshots restore the control plane, Velero restores objects and volumes, and only a timed drill tells you whether either meets your RTO and RPO.
- GitOps with Argo CD, not reconciledGitOps keeps desired state in Git and lets an agent in the cluster pull it and revert drift. Argo CD does that with Applications scoped by AppProjects, sync policies, waves and hooks, and ApplicationSets for many clusters.
- Progressive delivery, not reconciledProgressive delivery exposes a new version to a little traffic, measures it, and widens or aborts on the evidence. Argo Rollouts adds canary steps, blue-green switches and metric gates; feature flags release per user.
Field context
Optional context
Reliability practice and platform topics around a cluster, kept short and optional.
- SLOs and error budgets, not reconciledAn SLO turns "reliable enough" into a number, and the error budget it leaves decides when to ship and when to fix. Learn to write SLIs, compute budgets and alert on burn rate.
- Incident response and postmortems, not reconciledAn incident goes better with named roles, a severity that sets the pace, and mitigation before diagnosis. Afterwards a blameless postmortem turns the outage into owned fixes.
- Multi-cluster and platform engineering, not reconciledPast a certain size, one cluster becomes many and kubectl becomes a platform. Learn when to split clusters, how fleets are managed with GitOps, and what an internal developer platform adds.
- Cost and capacity, not reconciledA cluster bills for what pods reserve, not what they use. Learn to attribute cost from requests and usage, find idle capacity, buy cheaper nodes safely and plan headroom for failure and growth.