Skip to main content
This article explains how to use kubeadm to bootstrap a production-ready Kubernetes cluster. kubeadm is a tool that automates the installation and configuration of the core control-plane components—such as kube-apiserver, etcd, and the controller/scheduler—and configures kubelet on each node. It also generates certificates and kubeconfig files so components can communicate securely. kubeadm streamlines what would otherwise be a tedious, error-prone manual process: installing each component on different hosts, generating and distributing certificates, and creating the required configuration files.
A diagram titled "kubeadm" showing a Kubernetes master and two worker nodes. The master contains kube-apiserver, etcd, node-controller and replica-controller, while each worker runs kubelet and a container runtime.
High-level kubeadm workflow Below is a concise sequence of actions typically performed to create a multi-node Kubernetes cluster with kubeadm. After the list, you’ll find example commands and a compact reference table.
  1. Provision multiple machines or VMs that will form the cluster. One will be the control-plane (master) and the others will be worker nodes.
  2. Choose the control-plane host and the worker nodes.
  3. Install and configure a container runtime on every host. This guide uses containerd as an example.
  4. Install kubeadm and kubelet on each host. Install kubectl on the control-plane node or an administrator workstation.
  5. Initialize the control-plane using kubeadm init. This creates static pod manifests for control-plane components and etcd, generates certificates, and produces a kubeadm join command for workers.
  6. Install a pod network add-on (for example, Calico, Flannel, or Weave Net).
  7. Join each worker node using the kubeadm join command produced during initialization.
Why kubeadm is useful
  • It generates and manages TLS assets and kubeconfig files.
  • It writes static pod manifests for control-plane components and etcd (when not using an external etcd).
  • It applies best-practice defaults while allowing you to customize configuration.
Quick example commands
  • Example: installing containerd (generic steps—consult your distribution documentation)
  • Example: install kubeadm, kubelet, and kubectl (generic)
  • Example: initialize the control-plane (specify pod network CIDR as required by your CNI)
  • After kubeadm init, set up kubectl for a non-root user:
  • Example: join a worker node (the real command will be printed by kubeadm init; placeholders shown)
Visual summary
A slide-style diagram titled "Steps" showing a Kubernetes cluster setup across three columns (Master, Worker Node 1, Worker Node 2) with stacked components like containerd and kubeadm, an "Initialize" step, and a horizontal "POD Network" bar. Numbered steps 1–5 are listed down the left side.
Before joining worker nodes, ensure the pod network provider is installed and configured per the provider’s documentation (for example, Calico, Flannel, or Weave Net). Once the pod network is active and workers have joined, you can deploy applications to the cluster.
Before using kubeadm, ensure node prerequisites are met: disable swap, enable required sysctl settings for bridged traffic, and open any required ports between nodes. Consult your distribution and the pod-network provider for exact requirements.
Summary table References and further reading A step-by-step demonstration follows that shows how to set up Kubernetes using the kubeadm tool.

Watch Video