Start here

Containers in Kubernetes terms

Ground floor16 min

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 reconciled

The two prerequisites, containers and DNS, in the terms Kubernetes uses for them.

  1. Containers in Kubernetes terms, ready to start

    16 minStart here

  2. Isolation: namespaces, cgroups and the runtime, locked

    16 minNeeds Containers in Kubernetes terms

  3. DNS in Kubernetes terms, ready to start

    18 minOn AWS

The API and the loop

0 of 8 reconciled

How the cluster stores desired state, how you talk to it, and how controllers converge on it.

  1. Desired state and the reconcile loop, locked

    16 minNeeds Containers in Kubernetes terms

  2. Control plane and nodes, locked

    24 minOn AWSNeeds Desired state and the reconcile loop

  3. API machinery: groups, versions and resource versions, locked

    22 minOn AWSNeeds Control plane and nodes

  4. kubectl and kubeconfig, locked

    24 minOn AWSNeeds API machinery: groups, versions and resource versions

  5. Namespaces, labels and annotations, locked

    22 minNeeds kubectl and kubeconfig

  6. Declarative management and server-side apply, locked

    25 minNeeds Namespaces, labels and annotations

  7. Owners, finalizers and garbage collection, locked

    24 minNeeds API machinery: groups, versions and resource versions and Namespaces, labels and annotations

  8. Custom resources and operators, locked

    30 minOn AWSNeeds Owners, finalizers and garbage collection and Declarative management and server-side apply

Pods and workloads

0 of 7 reconciled

The pod, its lifecycle, and the controllers that run pods for services, node agents and batch.

  1. Pod anatomy, locked

    22 minNeeds Namespaces, labels and annotations and Containers in Kubernetes terms

  2. Pod lifecycle, restarts and termination, locked

    24 minNeeds Pod anatomy

  3. Init containers and native sidecars, locked

    22 minNeeds Pod lifecycle, restarts and termination

  4. Probes: startup, readiness and liveness, locked

    24 minNeeds Pod lifecycle, restarts and termination

  5. Deployments and rolling updates, locked

    22 minNeeds Probes: startup, readiness and liveness and Namespaces, labels and annotations

  6. DaemonSets, locked

    18 minNeeds Deployments and rolling updates

  7. Jobs and CronJobs, locked

    24 minNeeds Pod lifecycle, restarts and termination and Init containers and native sidecars

Scheduling and nodes

0 of 10 reconciled

How pods land on nodes, what they are guaranteed there, and what happens when a node runs short or goes away.

  1. Requests, limits and quotas, locked

    20 minNeeds Pod anatomy

  2. QoS classes and node-pressure eviction, locked

    20 minNeeds Requests, limits and quotas

  3. cgroups, memory pressure and the OOM killer, locked

    22 minNeeds QoS classes and node-pressure eviction

  4. How the scheduler places a pod, locked

    20 minNeeds Requests, limits and quotas and Control plane and nodes

  5. Affinity, taints and tolerations, locked

    22 minNeeds How the scheduler places a pod

  6. Topology spread constraints, locked

    22 minOn AWSNeeds Affinity, taints and tolerations

  7. Priority and preemption, locked

    22 minOn AWSNeeds How the scheduler places a pod and QoS classes and node-pressure eviction

  8. Nodes and the kubelet, locked

    24 minOn AWSNeeds QoS classes and node-pressure eviction and Affinity, taints and tolerations

  9. Disruptions and PodDisruptionBudgets, locked

    22 minOn AWSNeeds Nodes and the kubelet and Deployments and rolling updates

  10. Cluster autoscaling, locked

    24 minOn AWSNeeds Disruptions and PodDisruptionBudgets and Priority and preemption

Networking

0 of 8 reconciled

How pods reach each other, how Services and Gateways route to them, and where DNS and policy fit.

  1. The pod network model, locked

    26 minOn AWSNeeds Pod anatomy and Isolation: namespaces, cgroups and the runtime

  2. Services, locked

    28 minOn AWSNeeds The pod network model and Namespaces, labels and annotations

  3. EndpointSlices and kube-proxy, locked

    26 minOn AWSNeeds Services and Probes: startup, readiness and liveness

  4. Following a packet through the node, locked

    24 minNeeds EndpointSlices and kube-proxy

  5. Cluster DNS with CoreDNS, locked

    27 minOn AWSNeeds Services and DNS in Kubernetes terms

  6. Gateway API and the frozen Ingress API, locked

    26 minOn AWSNeeds Services

  7. NetworkPolicies, locked

    24 minOn AWSNeeds Cluster DNS with CoreDNS and Namespaces, labels and annotations

  8. gRPC, service mesh and mTLS, locked

    26 minOn AWSNeeds EndpointSlices and kube-proxy and Gateway API and the frozen Ingress API

Config, storage and state

0 of 6 reconciled

Getting configuration, secrets and durable data into pods, and running workloads that keep state.

  1. ConfigMaps, locked

    20 minOn AWSNeeds Pod anatomy

  2. Secrets and external secret stores, locked

    25 minOn AWSNeeds ConfigMaps

  3. Volumes inside a pod, locked

    22 minOn AWSNeeds ConfigMaps

  4. PersistentVolumes, claims and StorageClasses, locked

    26 minOn AWSNeeds Volumes inside a pod

  5. StatefulSets, locked

    24 minNeeds PersistentVolumes, claims and StorageClasses, Deployments and rolling updates and Services

  6. Snapshots, clones and volume attributes, locked

    22 minOn AWSNeeds PersistentVolumes, claims and StorageClasses

Security

0 of 6 reconciled

Who can call the API, what they may do, what pods may do, and what is allowed to run.

  1. Authentication and service accounts, locked

    30 minOn AWSNeeds kubectl and kubeconfig and Pod anatomy

  2. RBAC, locked

    30 minOn AWSNeeds Authentication and service accounts and Namespaces, labels and annotations

  3. Pod security: securityContext and Pod Security Admission, locked

    30 minOn AWSNeeds RBAC and Volumes inside a pod

  4. Admission control and policy, locked

    30 minNeeds Pod security: securityContext and Pod Security Admission

  5. Image supply chain, locked

    30 minOn AWSNeeds Admission control and policy and Containers in Kubernetes terms

  6. Audit logging and runtime security, locked

    30 minOn AWSNeeds RBAC and Admission control and policy

Operate and ship

0 of 10 reconciled

Seeing, debugging, scaling, upgrading, backing up and delivering to a running cluster.

  1. Metrics, logs, events and traces, locked

    25 minOn AWSNeeds Deployments and rolling updates and DaemonSets

  2. Horizontal pod autoscaling, locked

    25 minNeeds Metrics, logs, events and traces and Requests, limits and quotas

  3. Right-sizing and in-place resize, locked

    25 minNeeds Horizontal pod autoscaling and QoS classes and node-pressure eviction

  4. A troubleshooting method, locked

    25 minNeeds Pod lifecycle, restarts and termination, Services and Metrics, logs, events and traces

  5. kubectl debug and ephemeral containers, locked

    20 minNeeds A troubleshooting method and Pod security: securityContext and Pod Security Admission

  6. Debugging from the node: crictl, journalctl and nsenter, locked

    20 minNeeds kubectl debug and ephemeral containers and Nodes and the kubelet

  7. Upgrades and version skew, locked

    24 minOn AWSNeeds API machinery: groups, versions and resource versions and Disruptions and PodDisruptionBudgets

  8. etcd, backup and disaster recovery, locked

    26 minOn AWSNeeds Control plane and nodes and Snapshots, clones and volume attributes

  9. GitOps with Argo CD, locked

    28 minOn AWSNeeds Declarative management and server-side apply and Deployments and rolling updates

  10. Progressive delivery, locked

    26 minOn AWSNeeds GitOps with Argo CD and Gateway API and the frozen Ingress API

Field context

Optional context0 of 4 reconciled

Reliability practice and platform topics around a cluster, kept short and optional.

  1. SLOs and error budgets, locked

    16 minNeeds Metrics, logs, events and traces

  2. Incident response and postmortems, locked

    15 minNeeds A troubleshooting method

  3. Multi-cluster and platform engineering, locked

    18 minOn AWSNeeds GitOps with Argo CD

  4. Cost and capacity, locked

    17 minOn AWSNeeds Cluster autoscaling and Right-sizing and in-place resize

Track by track

What each track covers and what each lesson is about, about 24 hours 7 minutes of reading in all.

  1. Ground floor

    Optional context

    The two prerequisites, containers and DNS, in the terms Kubernetes uses for them.

    3 lessons50 minutes

    1. 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.16 min
    2. 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.16 min
    3. 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.18 minIncludes On AWS
  2. The API and the loop

    How the cluster stores desired state, how you talk to it, and how controllers converge on it.

    8 lessons3 hours 7 minutes

    1. 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.16 min
    2. 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.24 minIncludes On AWS
    3. 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.22 minIncludes On AWS
    4. 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.24 minIncludes On AWS
    5. 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.22 min
    6. 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.25 min
    7. 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.24 min
    8. 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.30 minIncludes On AWS
  3. Pods and workloads

    The pod, its lifecycle, and the controllers that run pods for services, node agents and batch.

    7 lessons2 hours 36 minutes

    1. 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.22 min
    2. 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.24 min
    3. 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.22 min
    4. 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.24 min
    5. 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.22 min
    6. 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.18 min
    7. 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.24 min
  4. Scheduling and nodes

    How pods land on nodes, what they are guaranteed there, and what happens when a node runs short or goes away.

    10 lessons3 hours 38 minutes

    1. 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.20 min
    2. 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.20 min
    3. 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.22 min
    4. 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.20 min
    5. 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.22 min
    6. 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.22 minIncludes On AWS
    7. 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.22 minIncludes On AWS
    8. 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.24 minIncludes On AWS
    9. 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.22 minIncludes On AWS
    10. 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.24 minIncludes On AWS
  5. Networking

    How pods reach each other, how Services and Gateways route to them, and where DNS and policy fit.

    8 lessons3 hours 27 minutes

    1. 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.26 minIncludes On AWS
    2. 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.28 minIncludes On AWS
    3. 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.26 minIncludes On AWS
    4. 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.24 min
    5. 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.27 minIncludes On AWS
    6. 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.26 minIncludes On AWS
    7. 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.24 minIncludes On AWS
    8. 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.26 minIncludes On AWS
  6. Config, storage and state

    Getting configuration, secrets and durable data into pods, and running workloads that keep state.

    6 lessons2 hours 19 minutes

    1. 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.20 minIncludes On AWS
    2. 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.25 minIncludes On AWS
    3. 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.22 minIncludes On AWS
    4. 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.26 minIncludes On AWS
    5. 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.24 min
    6. 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.22 minIncludes On AWS
  7. Security

    Who can call the API, what they may do, what pods may do, and what is allowed to run.

    6 lessons3 hours

    1. 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.30 minIncludes On AWS
    2. 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.30 minIncludes On AWS
    3. 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.30 minIncludes On AWS
    4. 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.30 min
    5. 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.30 minIncludes On AWS
    6. 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.30 minIncludes On AWS
  8. Operate and ship

    Seeing, debugging, scaling, upgrading, backing up and delivering to a running cluster.

    10 lessons4 hours 4 minutes

    1. 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.25 minIncludes On AWS
    2. 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.25 min
    3. 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.25 min
    4. 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.25 min
    5. 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.20 min
    6. 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.20 min
    7. 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.24 minIncludes On AWS
    8. 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.26 minIncludes On AWS
    9. 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.28 minIncludes On AWS
    10. 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.26 minIncludes On AWS
  9. Field context

    Optional context

    Reliability practice and platform topics around a cluster, kept short and optional.

    4 lessons1 hour 6 minutes

    1. 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.16 min
    2. 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.15 min
    3. 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.18 minIncludes On AWS
    4. 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.17 minIncludes On AWS