TopGit
GitHub Repo Review

Kubernetes The Hard Way Tutorial: Manual K8s Setup

kelseyhightower/kubernetes-the-hard-way
KTopGit review image for kelseyhightower/kubernetes-the-hard-way
Review by Topgit.dev for kelseyhightower/kubernetes-the-hard-way, with GitHub repository stats and README context.
Quick verdict

Kubernetes The Hard Way earns its title: you hand-generate TLS certificates, write systemd unit files, and wire up etcd yourself instead of running an install script. It's worth doing once, not on a schedule — the payoff is understanding why kubeadm and managed clusters work the way they do, not a cluster you'd run in production. Do it for the mental model; don't do it expecting a shortcut.

Stars
★ 50.8k
Forks
⑂ 16.0k
Language
—
License
Apache-2.0
Topic
—
Updated
Apr 2025
Homepage
—
GitHub

What is Kubernetes The Hard Way?

Kubernetes The Hard Way is Kelsey Hightower's step-by-step guide to bootstrapping a Kubernetes cluster by hand — no installer script. You provision four machines, generate your own TLS certificates and kubeconfig files, then bring up etcd, the control plane, and worker nodes one command at a time. The lab targets Kubernetes v1.32.x, containerd v2.1.x, CNI v1.6.x, and etcd v3.6.x; the guide text is CC BY-NC-SA 4.0, the code Apache-2.0.

Why learn Kubernetes the manual way?

Most Kubernetes onboarding starts with kubeadm, a managed control plane, or a one-click cluster from a cloud provider, so the control plane's moving parts stay hidden until something breaks in production. Kubernetes The Hard Way exists because, per the README, it's built for those seeking to grasp Kubernetes fundamentals and understand how the individual components work together, not just get a cluster running. Knowing what etcd, the API server, and the kubelet each actually do is what makes debugging a real cluster later possible — script-based installers skip past all of it.

What the tutorial covers

  • ✓A certificate authority built from scratch, issuing TLS certificates for etcd, the API server, and every kubelet
  • ✓Kubeconfig files written by hand for authentication, instead of a generated bootstrap token
  • ✓A dedicated jumpbox host for running administrative commands against the cluster
  • ✓An etcd v3.6.x cluster bootstrapped as the backing store for cluster state
  • ✓Kubernetes v1.32.x control plane components (API server, controller manager, scheduler) started as systemd units, not pods
  • ✓containerd v2.1.x and CNI v1.6.x configured on worker nodes for pod networking
  • ✓A data encryption config and key generated for securing Secrets at rest
  • ✓Pod network routes provisioned by hand across both worker nodes
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history ↗

What you will build step by step

  • •Provision four ARM64 or AMD64 machines — a jumpbox, a control plane node, and two workers — on the same network
  • •Generate a certificate authority and issue TLS certificates for etcd, the API server, and the kubelets
  • •Bootstrap a single-node etcd cluster and a single-node Kubernetes control plane by hand
  • •Join two worker nodes running containerd and wire up pod network routes between them
  • •Configure kubectl for remote access and run a smoke test against the finished cluster
  • •Tear the whole cluster down again with the cleanup lab

Strengths

  • ✓Every command is explicit — no black-box script hides what actually configures the control plane
  • ✓Lab versions stay current: Kubernetes v1.32.x, containerd v2.1.x, CNI v1.6.x, and etcd v3.6.x, not versions from years ago
  • ✓Minimal footprint — four machines is all you need, no managed Kubernetes service or cloud account required
  • ✓The lab order — certs, then etcd, then control plane, then workers, then networking — mirrors how a real cluster's dependencies stack
  • ✓A dedicated smoke-test lab at the end lets you confirm the cluster actually works before tearing it down

Limitations and what to expect

  • △Results aren't production ready — the README says so directly, and the project may offer only limited community support
  • △Everything is manual, so one mistake (a wrong cert, a typo'd IP) tends to surface as a confusing failure two labs later
  • △The setup covers a single control-plane node, not HA, so it won't teach you multi-master failover
  • △No scripts means no reusable automation afterward — you walk away with knowledge, not an IaC template
  • △The guide text is licensed CC BY-NC-SA 4.0, which restricts commercial reuse of the tutorial itself, separate from the code's Apache-2.0 license

Alternatives for cluster setup

Frequently asked questions

How long does it take to complete Kubernetes The Hard Way?

Kubernetes The Hard Way doesn't list a fixed time estimate in its documentation. It's organized as a sequence of labs, from provisioning machines through final cleanup, so expect to spread it across multiple sessions rather than finish it in one sitting.

Do I need prior Kubernetes experience to start this tutorial?

Kubernetes The Hard Way doesn't require prior Kubernetes experience, but it's aimed at readers who already want to understand how the core components fit together, per the README's description of its target audience. Comfort with Linux, TLS certificates, and systemd makes the labs far less confusing.

Can I use Kubernetes The Hard Way for production clusters?

Kubernetes The Hard Way isn't meant for production clusters — the README states directly that its results shouldn't be viewed as production ready, and the project may offer only limited community support. It's built for learning the mechanics, not running real workloads.

What hardware is required to follow the tutorial?

Kubernetes The Hard Way requires four machines — one jumpbox, one control plane node, and two workers — either ARM64 or AMD64, virtual or physical, all connected to the same network. The README doesn't specify RAM or CPU minimums beyond that.

Is the tutorial still maintained and updated for recent Kubernetes versions?

Kubernetes The Hard Way currently targets Kubernetes v1.32.x, alongside containerd v2.1.x, CNI v1.6.x, and etcd v3.6.x — recent releases of each component, listed directly in the repo's README.

Does Kelsey Hightower still provide support for this tutorial?

The README for Kubernetes The Hard Way says the project may receive limited support from the community, without detailing Kelsey Hightower's personal involvement. Treat it as community-supported documentation, not a vendor product with guaranteed maintainer response times.

Who should try it — and who should skip

Kubernetes The Hard Way suits engineers who already run containers day to day and want to know what kubeadm, EKS, or GKE are doing underneath — SREs prepping for on-call, backend developers moving into platform work, or anyone studying for a Kubernetes certification. It's rough going if you're new to Linux systems administration or TLS in general; there's no hand-holding here, just labs. Skip it if you need a cluster running today — grab kubeadm or a managed service, and come back to this once that cluster is already puzzling you.

Source & attribution

Facts and details sourced from the kelseyhightower/kubernetes-the-hard-way GitHub repository and its README.

GitHub data · last synced Aug 15, 2026Reviewed by Henry
← Back to TopGit

Curious whether kubernetes-the-hard-way is right for you?

Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about kubernetes-the-hard-way.

GitHub