All lessons
Flows that are hard to follow in text, shown as diagrams that move one step at a time. Each lesson takes about 10 minutes. Press Next to bring in components and send requests across the diagram, or turn on ▶ Autoplay and watch it like a video.
The tracks go from easy to hard. New to Kubernetes? Start at the top. Already comfortable? Jump to whatever you are curious about. Finished lessons get a ✓.
Foundations: web, servers, containers
Web requests, TCP/IP layers, DNS, crypto basics, HTTPS, servers to containers, Linux basics and SSH, Linux isolation, images and Dockerfiles, Git and CI/CD. What to know before Kubernetes.
When You Type an Address
One web request’s journey: DNS lookup, connection, HTTP request, load balancer and status codes.
Under One Request: TCP/IP Layers
Segments, packets and frames, ports, IPs and MACs, the handshake, and refused vs timed out.
How DNS Finds an Address
Stub resolver, recursive resolver, root, TLD and authoritative servers, TTL caching, and NXDOMAIN vs SERVFAIL vs timeout.
Cryptography a Developer Needs
Hash, HMAC, symmetric and asymmetric keys, signatures and key exchange: what each one guarantees, where you meet it, and the mistakes that break it.
HTTPS and Certificates
How certificates verify the other side, private certificates and the chain of trust, and what happens when they expire.
From One Server to Containers
A server’s four resources, processes, virtual machines, and containers that share the kernel.
Linux Basics for Kubernetes
Processes and signals, what exit codes 127 and 137 mean, root and sudo, rwx permissions and "permission denied", systemd units and where logs live.
How SSH Keys Get You Into a Server
An ed25519 key pair, authorized_keys and known_hosts, what the host key warning means, ssh-agent, jumping through a bastion, and logging in with no open port 22.
How Linux Isolates a Container
A container is a host process: namespaces change what it can see, cgroups limit what it can use.
How an Image Is Built and Run
Dockerfile, layers, names and tags, registries, and how a node pulls and runs it.
Writing a Good Dockerfile
Cache-friendly layer order, multi-stage builds, small non-root images, signals that reach PID 1, and secrets that never land in a layer.
From Branch to Merge Request
The collaboration flow of branches, commits, merge requests, reviews, conflicts and tags.
How a Pipeline Runs
Trigger → build → test → artifact → deploy per environment, and where it stops on failure.
App basics: HTTP, auth, data
HTTP versions, API design, reverse proxies, streaming, logins and tokens, databases, caches, message queues, resilience patterns, distributed systems, microservices. The parts services are built from.
HTTP/1.1, HTTP/2 and HTTP/3
Same request, three ways to carry it: keep-alive, HTTP/2 streams over one TCP connection, HTTP/3 over QUIC, and what that means for load balancers.
Designing HTTP APIs
Resources and methods, status codes that mean something, idempotency keys for payments, cursor pagination, one error format, versioning without breaking clients, and REST vs gRPC vs GraphQL.
Reverse Proxies and Load Balancing
What a reverse proxy sees at L4 and L7, how it picks and checks backends, why the client IP gets lost, and what 502 and 504 really mean.
Long-Lived Connections and Streaming
Polling, SSE, WebSocket and gRPC streams compared, how LLM tokens reach the browser, and why proxies buffer, time out and unevenly spread long connections.
How Logging In Works (Sessions, JWT, OIDC)
Password hashes, session cookies versus JWTs, the OIDC authorization code flow with PKCE, three kinds of token, and 401 versus 403.
What Happens When an App Saves to a Database
Connection pools, query plans and indexes, transactions and the WAL, locks, read replicas and replication lag.
How an Application Cache Works
Cache-aside reads, invalidation on writes, TTL and eviction, stampedes on a hot key, and the database load when the cache dies.
How a Message Queue Decouples Services
Topics, partitions and consumer groups, why at-least-once delivery means consumers must be idempotent, consumer lag, and dead-letter queues.
Making Service Calls Survive Failures
One slow dependency can take down a whole checkout. Timeouts, retries with backoff, circuit breakers, bulkheads, load shedding and fallbacks, and where each one lives.
Distributed Systems Basics
Timeouts that tell you nothing, retries that duplicate, replicas that lag, clocks that lie, and the patterns (idempotency keys, versions, outbox) that keep data right.
Monolith, Modular Monolith and Microservices
One deploy unit or many: independent deploys and scaling versus network calls, split data, tracing and versioning, and how to migrate with a strangler fig.
Cloud basics
IaaS/PaaS/SaaS, the VPC request path, availability-zone failover, auto scaling groups, IAM, SSO, KMS, object storage, managed databases, CDN, WAF, serverless, hybrid networking, multi-region DR, cost, infrastructure as code, managed Kubernetes.
Who Owns What (IaaS · PaaS · SaaS)
From on-premises to SaaS, how the line of responsibility shifts layer by layer.
How a Request Travels Inside a VPC
Requests and responses through the internet gateway, subnets, security groups and NAT.
When One Availability Zone Goes Down
How health checks pull traffic and a standby DB is promoted, and what RPO and RTO mean.
Auto-Scaling VMs (Auto Scaling Groups)
A metric alarm adds VMs, which join the load balancer after health checks.
Permission Checks on One API Request (IAM)
Authentication, default deny, explicit allow, explicit deny, and temporary credentials.
Single Sign-On for People (SSO and Federation)
One identity provider for every login, permission sets instead of IAM users, groups mapped to roles, and what really happens when someone leaves.
How Cloud KMS Encrypts Your Data (Envelope Encryption)
A key that never leaves the HSM, data keys wrapped by it, the key policy that guards it, and what rotation and deletion really do.
How Object Storage Works
Buckets and keys, signed requests, a 403 versus an accidentally public bucket, presigned URLs, versioning and lifecycle rules.
What a Managed Database Does for You
What the provider runs and what stays yours, why a failover means reconnecting, how restore makes a new instance, and why connections run out before CPU.
How a CDN Serves a Request
Nearest edge, cache hit and miss, Cache-Control, revalidation with 304, purge vs versioned files, and keeping private pages out of the cache.
Protecting a Public Endpoint (WAF and DDoS)
Floods absorbed at the edge, a WAF that reads each HTTP request, rules started in count mode, and an origin that only the WAF can reach.
How a Serverless Function Runs
Events, cold and warm starts, concurrency limits and throttling, retries and idempotency, and what you pay for.
Connecting Networks: Peering, Transit, VPN and Private Endpoints
Peering, transit hubs, VPN and dedicated links, hybrid DNS, private endpoints, and why routes must exist both ways.
When a Whole Region Goes Down
Backups versus replication, the four DR strategies and their RPO/RTO/cost, DNS failover and drills.
Where a Cloud Bill Comes From
Compute, storage, data transfer and idle services on the bill, why Kubernetes requests decide node cost, and the FinOps loop.
Infrastructure as Code with Terraform
Code, init, plan and apply, shared state with a lock, drift, and why a -/+ in the plan deserves a second look.
Managed Kubernetes — Who Runs What
The provider runs the control plane, you run the nodes. How IAM, load balancers, disks, autoscaling and upgrades connect to the cloud.
Kubernetes core
A lab cluster, desired state, reading manifests, workload types, how a Pod starts, Services and DNS, config and volumes, PV lifecycle, Jobs, the local dev loop.
Build a Lab Cluster on Your Laptop
Install a container runtime, kind and kubectl, create a multi-node cluster in containers, load your own image, reach the app and clean up.
Desired State and the Control Loop
Write the desired state and a controller matches the current state to it. Plus labels and selectors.
Reading and Applying a Manifest
The four top-level fields of a manifest, how the API server checks them, and how create, apply, diff and server-side apply differ.
Workload Types
How Deployments, StatefulSets and DaemonSets handle Pods, and how to choose.
How a Pod Starts
How one kubectl apply goes through the API server, etcd, controllers, scheduler and kubelet to become a running Pod.
Pulling Images from a Private Registry
Why a private image fails with 401, how imagePullSecrets and credential providers hand the node a login, and why a cached image needs a credential check.
How a Request Reaches a Pod
The traffic path from load balancer → Ingress → Service → Pod, and how unready Pods are taken out.
Finding Services by Name (Service·DNS)
What happens when a Pod calls another service by name, and what changes across namespaces.
Config and Secrets (ConfigMap · Secret)
Keeping settings outside the image and passing them to Pods, and when changed values take effect.
How Storage Gets Attached (PVC·PV)
From requesting storage to a volume being created and attached to a Pod, and why data survives Pod death.
PersistentVolume Lifecycle and Reclaim Policy
Available, Bound, Released, Failed: what deleting a PVC does to the disk under Delete and Retain, how to save data in time, and how to bind a PV by hand.
Run Once and Finish (Job · CronJob)
Tasks that run to completion and stop, retries on failure, and tasks that run on a schedule.
The Inner Dev Loop on Kubernetes
Save a file and see it running in a cluster seconds later: watch-build-deploy tools, file sync, no registry for kind, and the same manifests as prod.
Running workloads
Probes, requests and limits, rolling updates, self-healing, graceful shutdown, HPA/VPA, node autoscaling, KEDA, StatefulSets, reading and debugging failures.
Health checks — alive, and ready for requests?
What startup, readiness and liveness probes each change, and the result of misconfiguring them.
Requests and limits
Requests place Pods; limits cap them. Throttling, OOMKilled and QoS eviction.
Zero-Downtime Deploys (Rolling Update)
Why service stays up while new Pods start one by one and old ones leave, and how to roll back.
Blue/green and canary with core primitives (CKAD)
Deployment strategies with only Deployments and Service selectors, no mesh.
When a Pod Dies (Self-Healing)
Who brings things back, and how, when a container dies or a whole node stops.
Graceful shutdown — going down without losing requests
How endpoint removal, SIGTERM, preStop and the grace period line up.
Multi-container pods — init and sidecar (CKAD)
Init container order, sidecars, and what containers in one Pod share.
Scaling with Load (HPA)
Measuring usage, computing the Pod count needed, and where it stops when node resources run out.
Adding and Removing Nodes (Cluster Autoscaler vs Karpenter)
A Pending Pod asks for a node. How Cluster Autoscaler and Karpenter answer, why it takes minutes, and what keeps a node from going away.
Scaling on Events with KEDA
Scale consumers on queue backlog instead of CPU, down to zero. How KEDA feeds the HPA, and what happens when the queue cannot be reached.
Automatic Pod Sizing (VPA)
Adjusting CPU and memory size rather than count, and why defined and actual values can look different.
StatefulSets and databases
Pods that start in order, stable names, and a volume that follows each Pod.
Reading status in three layers and the troubleshooting order
Reading Pod phase, container state and reason, and whether to check events or logs first.
Debugging a Running Pod with kubectl debug
When kubectl exec has no shell to run: ephemeral containers, Pod copies with a changed command, node debugging Pods, and what you must clean up.
Networking & service mesh
Service types, Ingress and TLS, Gateway API, NetworkPolicy, egress and dual-stack, Istio sidecars, traffic splitting, gateways and ambient mode, entry points compared.
Service Types (ClusterIP · NodePort · LoadBalancer)
Three ways to put a fixed address in front of a group of Pods, and why a mismatched selector leaves zero targets.
Ingress Rules and TLS
Rules by domain and path, ingress classes, certificate handling, and overlapping rules or missing targets.
How a Gateway API HTTPRoute Reaches a Pod
GatewayClass, Gateway and HTTPRoute owned by different teams, how a route attaches to a listener, and what status.parents says when it does not.
Blocking and Allowing Traffic (NetworkPolicy)
Opening only needed traffic from a default deny, and where to check blocked traffic.
Traffic Leaving the Cluster (Egress)
Which source IP the outside world sees, how to lock down egress with policies, and how an egress gateway gives a fixed IP.
IPv4/IPv6 Dual-Stack Networking
Why IPv6, what the cluster needs for dual-stack, how Pods and Services get two addresses, and the app bugs that show up first.
Service Mesh ① Sidecars and Mutual Authentication
How a proxy next to each Pod handles all traffic for encryption, identity and observability.
Service Mesh ② Splitting Traffic
Sending a share to a new version with virtual services and traffic policies, plus retries and timeouts.
Service Mesh ③ Mesh Gateway
How an outside request reaches a Pod through the mesh ingress gateway and a virtual service.
Service Mesh ④ Ambient Mode Without Sidecars
Join the mesh with a namespace label and no Pod restart, let a per-node ztunnel do mTLS over HBONE, and add a waypoint only where you need L7 rules.
Three Entry Points Compared (Ingress · Mesh Gateway · Gateway API)
What Ingress, the mesh gateway and the Gateway API each handle, compared with the same request.
Security & multi-tenancy
RBAC, ServiceAccount tokens, namespace quotas, Pod Security Standards, secret management, cert-manager, admission policies, supply chain, runtime security, CIS benchmark, sandboxed runtimes, audit logs, threat modeling.
Who Can Do What (RBAC)
How requests from people and Pods pass authentication and authorization, roles and bindings, and least privilege.
How a Pod Proves Who It Is (ServiceAccount Tokens)
Bound, short-lived tokens the kubelet mounts into each Pod, how the API server checks them, 401 versus 403, and OIDC trust for cloud workload identity.
Namespaces and Resource Quotas
Dividing into sections and setting limits, and why Pods stop scaling past the limit.
Pod Security Standards and securityContext
How a namespace security standard rejects risky Pods, and securityContext.
Keeping Secrets Safe
Where a Secret really lives, encryption at rest with KMS, who can read it, keeping it out of Git, and syncing and rotating from an external vault.
Automatic TLS Certificates with cert-manager
From an Ingress annotation to a signed certificate: Issuer, Certificate, Order, Challenge, HTTP-01 and DNS-01, renewal, and where issuance gets stuck.
Admission Policies with CEL and Webhooks
Your own rules at the API server door: CEL policies and bindings, warn before deny, webhook engines, and what breaks when a webhook is down.
Image and Supply Chain Security
Scanning, signing and digest pinning, and verifying provenance at deploy time.
Runtime security — catching abnormal behavior (CKS)
Falco detection, seccomp and AppArmor blocking, and immutable containers.
CIS Kubernetes Benchmark and kube-bench (CKS)
What the CIS Benchmark checks, how to run kube-bench and read its report, and how to fix and verify the usual findings.
Sandboxed container runtimes — gVisor, Kata and RuntimeClass (CKS)
Why a shared kernel is the weak spot, how gVisor and Kata add a second kernel, and how RuntimeClass chooses the runtime per Pod.
Audit Logs
What each API request leaves behind (who, when, what) and audit policy levels.
Viewing the cluster through the 4Cs and a threat model (KCSA·KCNA)
Following an attacker’s path across boundaries and the defenses at each one.
Cluster operations
Scheduling and topology spread, node drains, kubeadm install and upgrades, node troubleshooting, Helm, Kustomize, GitOps, progressive delivery, observability pipeline, backup and restore, SLO alerts, incident response, chaos engineering, multi-cluster.
Which Node Gets the Pod (Scheduling)
Filtering by requests and scoring, and rules that pin Pods to nodes or keep them away.
Spreading Pods Across Zones (Topology Spread Constraints)
Keep replicas balanced across zones and nodes with maxSkew. What happens when a zone dies, during a rollout, and why it beats anti-affinity for more than one Pod per zone.
Draining Nodes and Upgrading the Cluster
The order of draining and upgrading nodes one by one, and the safeguard against removing too many at once.
Building a cluster with kubeadm (CKA)
Node prep, what each kubeadm init phase writes, why Nodes stay NotReady until a CNI, and joining workers and extra control planes.
Upgrading a cluster with kubeadm (CKA)
From control plane to workers, the order for moving up one minor version at a time.
Node NotReady and component failures (CKA)
Troubleshooting node failures by checking kubelet, the runtime and static Pods in turn.
How a Helm Release Is Installed, Upgraded and Rolled Back
Chart plus values becomes manifests, each install or upgrade becomes a revision stored in a Secret, and rollback writes a new revision.
Per-environment deploys with Kustomize (CKA·CKAD)
Producing different manifests per environment with base and overlays.
Helm and GitOps
Charts and releases, syncing the cluster to Git as the source of truth, and drift.
Progressive Delivery with Argo Rollouts
A Rollout that moves traffic step by step, checks a Prometheus success rate on the way, and rolls back by itself when the numbers go bad.
How Logs, Metrics and Traces Leave a Pod
Three signals, three paths: log files on the node, Prometheus pulling /metrics, and traces pushed over OTLP.
Backing Up and Restoring a Cluster
etcd snapshots, Velero backups of objects and volumes, consistent hooks, and a restore into a new cluster.
SLOs and Alert Design
SLIs, SLOs and error budgets, burn-rate alerts, and narrowing down the cause.
Incident Response: From Alert to Postmortem
Acknowledge, declare, assign roles, mitigate first, keep people informed, then learn from it in a blameless postmortem.
Chaos Engineering on Kubernetes
Steady state, hypothesis, small blast radius, abort on SLO metrics, and what killing Pods, adding latency and draining nodes reveal.
Running a Fleet of Clusters
Why one cluster becomes many, how GitOps and Cluster API keep a fleet alike, how Services are found across clusters, and where drift and version skew creep in.
Kubernetes internals
API request path and APF, leader election, kubelet and CRI, kube-proxy modes, finalizers, CRDs and operators, etcd quorum, certificates, packet path, volume binding, preemption.
How an API Request Gets Stored
Through authentication, authorization, admission webhooks and validation into etcd, then out via watch.
API Priority and Fairness
Why one noisy client cannot take the API server down: FlowSchemas, priority levels, flows, shuffle-sharded queues and 429 with Retry-After.
Deletion Is More Complex Than You Think
Finalizers, owner references, and why objects get stuck in Terminating.
CRDs and Operators
Registering a new resource kind and how an operator creates and reconciles child resources.
Leader Election with Leases
Why only one replica of a controller acts, how a Lease picks and renews the leader, how failover works, and why a paused leader still needs fencing.
Control Plane HA and etcd Quorum
etcd writes by majority agreement, and how many failures it can survive.
Cluster Certificate Expiry
Certificate expiry that creeps up silently, what happens that day, and the renewal order.
Inside the Node - kubelet, CRI and containerd
How the kubelet drives containerd over the CRI socket, how shims and runc start the process, how PLEG notices changes, and why Pods survive a containerd crash.
A Packet from Pod to Pod
CNI, same-node and cross-node paths, and where a Service IP becomes a Pod IP.
kube-proxy Modes, from Service IP to Pod IP
What kube-proxy actually programs on each node in iptables, IPVS and nftables mode, how eBPF replaces it, and why conntrack and traffic policy matter.
When Volumes Attach, and Failures
Binding modes, and where local volumes and network storage part ways on node failure.
Priority and Preemption
How a higher-priority Pod evicts lower ones when there is no room.
AI on Kubernetes · GPU/NPU
Device plugins and DRA, sharing, monitoring and networking GPUs, distributed training, serving engines, model packaging, training jobs, cold starts, inference requests and routing, LoRA serving, autoscaling, RAG, agents, guardrails, model evaluation.
How GPUs and NPUs become node resources (device plugins)
How drivers and device plugins register GPUs/NPUs with the kubelet, and how a Pod gets one by count.
Requesting GPUs by Criteria (DRA)
Dynamic resource allocation: requesting and getting GPUs as "devices that meet criteria", not "how many".
Getting Accelerators by Criteria (DRA in Depth)
A deployment becomes a device claim, gets a GPU and a network card together, then gives them back.
Sharing GPUs
Splitting GPUs as dedicated, MIG or time-slicing, and how the visible metrics differ by method.
Sharing Accelerators (Time-Slicing, MPS)
Whole GPU, time-slicing or MPS: three ways to share one card and what each gives up.
Monitoring GPUs on Kubernetes
DCGM exporter to Prometheus, metrics that show real GPU work, and the XID and ECC errors that mean a node must be drained.
Moving Data Between GPUs
NVLink inside a node, RDMA and GPUDirect across nodes, one NIC per GPU, and how to tell when NCCL quietly fell back to TCP.
Getting a Model Ready to Deploy
Pull weights, package them as an image or artifact, and pre-cache them on nodes so serving starts fast.
From Training Job to Model
A training Job waits in a queue for GPU quota, runs, saves checkpoints and becomes a model version.
Training One Model on Many GPUs
Copy the model or shard it, average gradients with all-reduce every step, and why one failed worker stops the whole job.
Until a Model First Starts (Cold Start)
Downloading weights, loading them onto the accelerator and warming the engine before the first request, and how to cut that time.
Choosing an LLM Serving Engine
What vLLM, SGLang, TensorRT-LLM, TGI and llama.cpp have in common, where they differ, and how to compare them without fooling yourself.
From API Request to Response
One inference request through API-key checks, the gateway and a replica to a streamed answer, and where it gets stopped.
Which Replica Gets the Request (Inference Routing)
How the gateway and endpoint picker (EPP) choose a replica from prefix-cache hits and load.
Serving Many LoRA Adapters on One Base Model
Why a LoRA adapter is MBs while the base model is GBs, how one GPU serves many adapters per request, and what swapping, routing and versioning cost.
Autoscaling LLM Inference
Scale LLM replicas on waiting requests and KV cache use, not GPU utilization, and plan around cold starts and GPU node delays.
How a RAG Pipeline Answers From Your Documents
Chunk, embed and index documents, then retrieve, rerank and hand the best chunks to the LLM, and where answers go wrong.
Serving an LLM Agent That Calls Tools
The tool-calling loop step by step, MCP servers that expose tools, why every turn costs another inference request, and the guardrails an agent needs.
Guardrails Around an LLM App
Checks before and after the model, where to run them, what they cost, and why the tool behind the agent must still check permissions.
Evaluating a Model Before and After Deploy
Build an eval set from real tasks, score it fairly, gate new models, prompts and quantizations in CI, then confirm on a canary with live quality and latency.
How LLM serving works
Token generation, prefill and decode, KV cache, continuous batching, quantization, speculative decoding, KV offloading, model parallelism, prefill/decode disaggregation.
How an Answer Is Built One Token at a Time
Tokenize, predict the next token, sample, append and repeat until the answer is done.
Reading the Question, Writing the Answer (Prefill and Decode)
Prefill reads the prompt at once, decode writes one token at a time, and how that shows up as TTFT and TPOT.
How the KV Cache Fills Up
Storing attention results for reuse, block allocation, prefix caching and what happens when it fills up.
Batching Requests (Continuous Batching)
Why requests are computed together and how the batch is rebuilt on every iteration.
Making a Model Smaller (Quantization)
Fewer bits per weight: how scale factors work, why outliers hurt, what it frees for the KV cache, and why you must re-check accuracy.
Guess Ahead, Check Once (Speculative Decoding)
A cheap draft guesses several tokens, the big model checks them in one pass, and acceptance rate decides how much faster decode gets.
Offloading Overflowing KV Cache
Moving evicted KV cache to CPU memory, NVMe or shared storage and bringing it back, with the limits.
Splitting a Model Across GPUs (TP, PP, EP)
Copy, split each layer, split the layer stack, or spread the experts: four ways to serve a model that does not fit one GPU, and what they cost.
Splitting Prefill and Decode (P/D Disaggregation)
Running prefill and decode on different replicas and handing the KV cache across, plus what it needs.
Preparing for a certification?
The lessons are grouped by topic, but they cover most of the flows on the CNCF exams.
| Exam | Start with |
|---|---|
| KCNA | Foundations, Cloud basics, Kubernetes core |
| CKAD | Kubernetes core, Running workloads, Networking & service mesh |
| CKA | Running workloads, Networking & service mesh, Cluster operations, Kubernetes internals |
| CKS · KCSA | Security & multi-tenancy, plus NetworkPolicy and RBAC |
How to use a lesson
| Action | How |
|---|---|
| Next / previous step | Buttons in the right panel, or click the lesson once and use ← → |
| Jump to a step | The numbered timeline under the diagram |
| Autoplay | ▶ Autoplay above the diagram, or A |
| Replay / pause the animation | Buttons above the diagram, or R · P |
| Line colors | Blue = request, purple = response/report, dashed teal = watch |
If your system has "reduce motion" turned on, you will see lines and text without moving packets.