Kubernetes for All: Build a Datacenter from Scratch
Most Kubernetes tutorials stop at the dashboard. This book starts where those tutorials end.
You have run kubectl apply enough times to know the commands, but you have never written the tooling that glues those commands together — the script that provisions a cluster from bare metal, builds and pushes your images, deploys your Helm charts, reloads services after a code change, and tears everything down cleanly when you are done. The kind of script that actually runs your platform.
This book builds that script from the first line of Bash to a complete 450-line production management system, across 18 chapters that never skip the "why."
What you will build
You will build datacenter.sh, a script to provision and run a production Kubernetes environment that can ran dozens of microservices. It handles two modes — a local Minikube cluster for development and a real datacenter server — using the same code path. By the end of the book you own it completely: every line explained, every design decision defended.
The book is organized in four parts. Part I covers the Bash foundation — safety options, lifecycle hooks, exit code conventions, cron mode, and terminal color output. Part II builds the script infrastructure — validation helpers, configuration file management, script locking, the library pattern, and complete parameter parsing. Part III covers Kubernetes operations: Minikube VM management, Docker image builds, kubectl resource management, Helm chart deployment, and service builds. Part IV walks through provisions from scratch, reload and recovery operations, and teardown.
Every chapter ends with hands-on exercises that run against the real source scripts.
Who this book is for
You are a developer or DevOps engineer who has used Kubernetes but wants to understand and own your own tooling rather than inherit someone else's undocumented scripts. You know enough Bash to read it but not enough to write production-quality automation from scratch. You want to see real code — not Hello World containers — and understand the engineering decisions behind it.
No Kubernetes certification required. No prior Bash mastery required. A working Docker and Minikube installation, and the desire to build something real.