
- Provision multiple machines or VMs that will form the cluster. One will be the control-plane (master) and the others will be worker nodes.
- Choose the control-plane host and the worker nodes.
- Install and configure a container runtime on every host. This guide uses containerd as an example.
- Install kubeadm and kubelet on each host. Install kubectl on the control-plane node or an administrator workstation.
- Initialize the control-plane using
kubeadm init. This creates static pod manifests for control-plane components and etcd, generates certificates, and produces akubeadm joincommand for workers. - Install a pod network add-on (for example, Calico, Flannel, or Weave Net).
- Join each worker node using the
kubeadm joincommand produced during initialization.
- 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.
- 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 upkubectlfor a non-root user:
- Example: join a worker node (the real command will be printed by
kubeadm init; placeholders shown)

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.
References and further reading
- kubeadm: https://kubernetes.io/docs/reference/setup-tools/kubeadm/
- kube-apiserver: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
- etcd: https://etcd.io/
- kubelet: https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
- containerd: https://containerd.io/
- Calico: https://projectcalico.org/
- Flannel: https://github.com/flannel-io/flannel
- Weave Net: https://github.com/weaveworks/weave