kelseyhightower /kubernetes-the-hard-way
Bootstrap Kubernetes the hard way. No scripts.
★ 50,641⑂ 15,961👁 945⑃ 486● 446▤ 0◈ 0
50,641
stars
+16+58+347
15,961
forks
945
watchers
486
prs
446
issues
0
releases
0
discussions
README
Kubernetes The Hard Way This tutorial walks you through setting up Kubernetes the hard way. This guide is not for someone looking for a fully automated tool to bring up a Kubernetes cluster. Kubernetes The Hard Way is optimized for learning, which means taking the long route to ensure you understand each task required to bootstrap a Kubernetes cluster. The results of this tutorial should not be viewed as production ready, and may receive limited support from the community, but don't let that stop you from learning! Copyright This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Target Audience The target audience for this tutorial is someone who wants to understand the fundamentals of Kubernetes and how the core components fit together. Cluster Details Kubernetes The Hard Way guides you through bootstrapping a basic Kubernetes cluster with all control plane components running on a single node, and two worker nodes, which is enough to learn the core concepts. Component versions: kubernetes v1.32.x containerd v2.1.x cni v1.6.x etcd v3.6.x Labs This tutorial requires four (4) ARM64 or AMD64 based virtual or physical machines connected to the same network. Prerequisites Setting up the Jumpbox Provisioning Compute Resources Provisioning the CA and Generating TLS Certificates Generating Kubernetes Configuration Files for Authentication Generating the Data Encryption Config and Key Bootstrapping the etcd Cluster Bootstrapping the Kubernetes Control Plane Bootstrapping the Kubernetes Worker Nodes Configuring kubectl for Remote Access Provisioning Pod Network Routes Smoke Test Cleaning Up
Top issues
#877kube-apiserver lack --service-cluster-ip-range param5 comments · 2025-05-28#864kubelet does not have ClusterDNS IP configured5 comments · 2025-04-18#887127.0.1.1 missing on virsh + cloud-init deployments3 comments · 2025-07-10#901Upgrade to Kubernetes 1.34.x2 comments · 2025-09-08#860Wrong ca.crt filepath2 comments · 2025-04-12#939[RELEASE] Idempotent Alpine + Debian 'packaged' version of kubernetes-the-hard-way with fully automated tests (Vagrant)1 comments · 2026-08-26#937Permission issue installing kubectl in 02-jumpbox.md when using Vagrant1 comments · 2026-08-19#936Unnecessary sed substitution for SUBNET in kubelet-config.yaml1 comments · 2026-06-28