Install K8s Master/Worker
Step-by-Step Instructions to Install Kubernetes
1. Prerequisites
2. Update and Upgrade the System
sudo apt update
sudo apt upgrade -y3. Disable Swap
sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab4. Configure Kernel Parameters
sudo tee /etc/modules-load.d/containerd.conf <<EOF
overlay
br_netfilter
EOF
sudo modprobe overlay
sudo modprobe br_netfilter
sudo tee /etc/sysctl.d/kubernetes.conf <<EOF
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
EOF
sudo sysctl --system5. Install Containerd Runtime
6. Add Kubernetes Repository and Install Components
7. Initialize the Master Node
8. Join Worker Nodes to the Cluster
9. Deploy a Test Application (Optional)
Summary
Last updated