DEV Community

Cover image for Step-by-Step: Installing Kubernetes (containerd & kubeadm) on Ubuntu 22.04
Thea Lauren
Thea Lauren

Posted on

Step-by-Step: Installing Kubernetes (containerd & kubeadm) on Ubuntu 22.04

If you've just spun up a fresh dedicated server and want to self-host your infrastructure, Kubernetes is the way to go. However, getting your control plane initialized correctly the first time requires specific configurations.

At Leo Servers, we host a lot of DevOps engineers, and we've compiled the ultimate failsafe guide to bootstrapping Kubernetes v1.29 using containerd.

Why This Guide?
Many older tutorials use Docker as the runtime, which is deprecated in modern K8s. This guide focuses strictly on the modern standard: containerd and kubeadm.

We cover the critical steps that most beginners miss, which lead to CrashLoopBackOff errors later on, specifically:

Disabling Swap: (Kubelet will refuse to start otherwise).

Kernel Modules: Loading overlay and br_netfilter.

Cgroup Drivers: Ensuring containerd is set to use SystemdCgroup = true.

What You'll Achieve
By the end of the tutorial, you will have a fully functional, single-node control plane with the Flannel CNI installed, ready to deploy pods and services. We've also included a section on removing the default taints so you can schedule workloads immediately.

Want the exact command-by-command instructions to get this running on your bare-metal server?

🔥 [Read the Full, Copy-Paste Ready Tutorial on Leo Servers->
https://www.leoservers.com/tutorials/howto/installing-containerd-and-kubeadm/]

Top comments (0)