K8s tips - upgrading the Kubernetes cluster using kubeadm
Upgrade kubeadm
sudo apt-mark unhold kubeadm
sudo apt install -y kubeadm=1.18.5-00
sudo kubeadm upgrade plan
sudo kubeadm upgrade apply v1.18.5
Upgrade kubelet and kubectl on master node
kubectl get nodes
kubectl version --short
sudo apt-mark unhold kubelet kubectl
sudo apt install -y kubelet=1.18.5-00
sudo apt install -y kubectl=1.18.5-00
Upgrade kubelet on worker node
sudo apt-mark unhold kubelet
sudo apt install -y kubelet=1.18.5-00