How to install Kubernetes using kubeadm in Ubuntu 20.04 LTS
Hi Everyone,
In this video I have shown how to install kubernetes using kubeadm in Ubuntu 20.04 LTS. I will share the steps in comment.
ubuntu
Hi Everyone,
In this video I have shown how to install kubernetes using kubeadm in Ubuntu 20.04 LTS. I will share the steps in comment.
ubuntu
Comments are closed.
Step 1
Execute the below commands in both Master and Worker nodes.
sudo su
apt-get update
apt-get install apt-transport-https
apt-get install docker.io -y
service docker restart
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add –
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" >/etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install kubelet kubeadm kubectl kubernetes-cni -y
Step 2 On Master
kubeadm init
>Copy the token and paste it into the worker node.
Step 3 On Master
Make sure you execute the below command as a normal user.
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Step 4 On Master
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.49.0/deploy/static/provider/baremetal/deploy.yaml