Hi , trying to update node01 version to v1.19.0, getting an error. Please help

disha rajpal:
Hi , trying to update node01 version to v1.19.0, getting an error. Please help
image.png

Deepak Ladwa:
Try this command:

apt-get update && \
apt-get install -y --allow-change-held-packages kubeadm=1.19.0-00

It should be = and not -

disha rajpal:
ok, Thanks

Munish Kumar Anand:
u used kubeadm-1.19.0-00. however u shud use

kubeadm=1.19.0-00

= in place of -

disha rajpal:
yep I got it

Mohamed Ayman:
Check the following detailed steps:
To upgrade the master node, run

kubectl drain master/controlplane --ignore-daemonsets
apt update
apt install kubeadm=1.19.0-00
kubeadm upgrade apply v1.19.0
apt install kubelet=1.19.0-00
kubectl uncordon master

Mohamed Ayman:
To upgrade the worker nodes, run

master$ kubectl drain node01 --ignore-daemonsets
master$ ssh node01
node01$ apt update
node01$ apt install kubeadm=1.19.0-00
node01$ apt install kubelet=1.19.0-00
node01$ kubeadm upgrade node 
master$ kubectl uncordon node01

Mohamed Ayman:
You can also look at the Kubernetes documentation to be comfortable in the real exam:
https://v1-19.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/

disha rajpal:
Ok . Thanks