Kubernetes Installation Guide
Kubernetes Installation Guide
sudo swapoff -a
overlay
br_netfilter
EOF
Configure the critical kernel parameters for Kubernetes using the following:
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
EOF
Install Kubernetes 1
sudo sysctl --system
We are using the containerd runtime. Install containerd and its dependencies
with the following commands:
Kubernetes packages are not available in the default Ubuntu 22.04 repositories.
Add the Kubernetes repositories with the following commands:
Install Kubernetes 2
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --
dearmour -o /etc/apt/trusted.gpg.d/kubernetes-xenial.gpg
With all the prerequisites in place, initialize the Kubernetes cluster on the master
node using the following Kubeadm command:
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
export KUBECONFIG=/etc/kubernetes/admin.conf
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/
Install Kubernetes 3
Then you can join any number of worker nodes by running the following on each
as root:
--discovery-token-ca-cert-hash
sha256:6d15f2a79bdb38d1666af50c85f060b9fadc73f13c932e0e2a9eeef08f51f91a
After the initialization is complete make a note of the kubeadm join command for
future reference.
Next, use kubectl commands to check the cluster and node status:
kubectl get nodes
kubectl apply -f
https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml
Install Kubernetes 4
Finally, we want to verify whether our cluster is successfully created.
Install Kubernetes 5