Shelves / Infrastructure
Software Engineering · Volume 6
Infrastructure
Part VI of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have only ever run programs on your own machine; every later chapter opens with a plain-language Start here section whose commands were actually run (on Ubuntu 24.04 with Docker 29, NGINX, HAProxy and a k3s 1.37 Kubernetes cluster), then goes all the way down: Linux processes, permissions, the page cache and diagnostics; containers built by hand from namespaces and cgroups; Docker images, caching, secrets and signals; reverse proxies, TLS and load balancing; Kubernetes from the control plane to probes and Service networking; and deployment strategies measured under live traffic. Each chapter ends with a lab of real measurements and a revision sheet, and a final chapter of eight projects builds a production-shaped platform.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Kubernetes material targets v1.37 (August 2026). Ingress NGINX was retired in March 2026, so new routing examples use the Gateway API. Where a feature is beta or still changing, the text says so. Commands assume a recent Linux distribution with cgroup v2.
Contents
- IN·00Start Here: Where Your Code Actually RunsFor readers who have written programs but never deployed one: the layers between your code and the hardware, the same small web service run four ways…5 min
- IN·79LinuxLinux for engineers who run software on it: the kernel/user-space boundary and system calls, the filesystem hierarchy, VFS, inodes and links…37 min
- IN·80ContainersWhat a container really is: ordinary Linux processes isolated with namespaces, limited with cgroup v2, and confined with capabilities, seccomp and…23 min
- IN·81DockerBuilding and running images well: every Dockerfile instruction and what it does to layers, the build context and .dockerignore, how the layer cache…23 min
- IN·82Reverse Proxies and GatewaysThe servers in front of your servers: forward versus reverse proxies, L4 versus L7, NGINX's event-driven architecture and configuration, HAProxy's…23 min
- IN·83KubernetesKubernetes from first principles to advanced operation: declarative desired state and reconciliation, the control plane (API server, etcd, scheduler…40 min
- IN·84Kubernetes Deployment StrategyShipping changes without outages: rolling updates in detail (maxSurge, maxUnavailable, readiness gating, progress deadlines), recreate, blue/green…22 min
- IN·85Infrastructure ProjectsEight build-it-yourself projects that take the tiffin centre's services from a laptop to a production-shaped platform: a hardened Linux host…7 min