kubeadm bootstrap design
What kubeadm actually bootstraps
kubeadm initializes or expands a Kubernetes cluster. It does not create virtual machines, install a container runtime or install kubectl for you. In a typical Linux kubeadm installation the kubelet starts the API server, scheduler and controller manager from static Pod manifests; local etcd also runs as a static Pod when the stacked configuration is used. The first control-plane host is not automatically a highly available cluster. The core path here is an offline design: do not execute initialization against any real host.
VM operating system → CRI runtime + kubelet → kubeadm init → static control-plane Pods → API available → network add-onReview the machine and network prerequisites
Use three disposable Linux VMs in the proposed plan: cp-a and two workers. Confirm unique node identities, adequate CPU and memory, synchronized clocks, supported OS and kernel, matching reviewed component versions, a working CRI endpoint and compatible cgroup configuration. Check swap handling against the chosen kubelet version instead of disabling protections blindly. Review required connectivity and firewall rules for the selected topology; do not expose the API or etcd publicly. The host subnet, Pod subnet and Service subnet must not collide with each other or existing reachable networks. In the example, the three CIDRs are distinct; in a real lab review every route, VPN and CNI requirement.
Host illustration: 192.0.2.0/24Pod range: 10.244.0.0/16Service range: 10.96.0.0/16API endpoint: api.cluster.test:6443Read a versioned configuration
InitConfiguration describes node-local initialization options, whereas ClusterConfiguration describes cluster-wide choices. The v1beta4 example below retains the inherited provisional v1.37.2 documentation baseline; it is not an assertion that this patch is currently safe to deploy. Recheck supported patches, runtime and CNI versions before a live exercise. The reserved host IP and .test DNS name are intentional placeholders, not reachable lab infrastructure. The local advertised IP identifies this API instance; the controlPlaneEndpoint is the stable shared address clients use. Ensure DNS, a suitable load balancer if needed, and certificate name coverage are designed together.
# Offline design only; reserved hostname and example addressapiVersion: kubeadm.k8s.io/v1beta4kind: InitConfigurationlocalAPIEndpoint: advertiseAddress: 192.0.2.11 bindPort: 6443nodeRegistration: name: cp-a criSocket: unix:///run/containerd/containerd.sock---apiVersion: kubeadm.k8s.io/v1beta4kind: ClusterConfigurationkubernetesVersion: v1.37.2controlPlaneEndpoint: api.cluster.test:6443networking: podSubnet: 10.244.0.0/16 serviceSubnet: 10.96.0.0/16 dnsDomain: cluster.localPlan initialization and stop at failed preflight checks
A reviewed kubeadm init configuration can be used in an explicitly authorized disposable VM; the command creates credentials, writes system files and starts cluster components. It is not a harmless parser. Preflight errors are reasons to investigate, not blanket exceptions to ignore. After API initialization, install a reviewed compatible Pod network add-on using its own instructions and verify readiness. CoreDNS may remain pending until networking is available. Preserve a reset plan using disposable VM snapshots, not broad deletion on a personal system.
Approved lab only, illustrative sequence (not executed):1. Check host and tool versions; confirm CIDR and endpoint design.2. Review kubeadm configuration against installed version.3. kubeadm init --config <reviewed-config.yaml>4. Review API health, install approved CNI, verify workloads.Practice and verification
Use network-cases.json to assess subnet separation and prereq-cases.json to identify blockers. Explain which checks remain unknown. Use the offline fixtures in lab-fixtures/kubeadm-bootstrap. State the evidence that would be required before any live test.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
kubeadm bootstrap design — knowledge check
Plan a kubeadm bootstrap with compatible tools, separate address ranges and a stable API endpoint before initializing a disposable cluster.
Which component creates the underlying VMs?
What is controlPlaneEndpoint intended to represent?
A Pod subnet overlaps a routed VPN range. What should you do?
What is InitConfiguration for?
A preflight check fails. What is the safest next step?