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 -yDisable swap memory
sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstabLoad required kernel modules
sudo modprobe overlay
sudo modprobe br_netfilterConfigure 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
EOFApply sysctl parameters without reboot
sudo sysctl --system