Posts

Showing posts from June, 2022

Kubernetes Cluster Installation

 Execute following script on all Kubernetes Nodes (Control Node and Worker Nodes) Login to every node and run following (I am using Ubuntu 20.04) cat > k8s.sh sudo apt update sudo apt -y full-upgrade [ -f /var/run/reboot-required ] && sudo reboot -f swapoff -a sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab echo $1 > /etc/hostname hostnamectl set-hostname $1 echo -e "overlay\nbr_netfilter" > /etc/modules-load.d/containerd.conf modprobe overlay modprobe br_netfilter echo -e "net.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nnet.bridge.bridge-nf-call-ip6tables = 1" > /etc/sysctl.d/99-kubernetes-cri.conf sysctl --system apt-get update && apt-get install -y containerd mkdir /etc/containerd && containerd config default | tee /etc/containerd/config.toml systemctl restart containerd.service systemctl enable containerd systemctl status  containerd apt-get install -y apt-transport-https curl curl  -s https://pa...