Kubernetes Installation Guide

Your visual step-by-step guide to a bare metal setup.

Step 1: Prepare Your Nodes

On each of your nodes (control-plane and workers), you need to prepare the environment. This involves updating the system, disabling swap, and ensuring required kernel modules are loaded.

Update and upgrade all packages

sudo apt-get update && sudo apt-get upgrade -y

Disable swap memory

sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab

Load required kernel modules

sudo modprobe overlay
sudo modprobe br_netfilter

Configure sysctl parameters for Kubernetes networking

cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
EOF

Apply sysctl parameters without reboot

sudo sysctl --system
Diagram of server nodes ready for installation.