Running the upgrade cluster lab and upgraded as defined in kubernetes doc and ma . . .

Mayur Sharma:
Running the upgrade cluster lab and upgraded as defined in kubernetes doc and matches to hint steps also, still failing the lab check where it verifies the kubelet version.

On, running the install command explicitly, getting following error,

root@controlplane:~# apt-get install kubelet-1.20.0-00
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package kubelet-1.20.0-00
E: Couldn’t find any package by glob ‘kubelet-1.20.0-00’
E: Couldn’t find any package by regex ‘kubelet-1.20.0-00’
root@controlplane:~# sudo systemctl daemon-reload

ALGOUTI Oussama:
kubelet=1.20.0-00

Mayur Sharma:
@ALGOUTI Oussama:My bad!

Before this, I ran,

kubeadm upgrade apply 1.20.0

and,

apt-mark unhold kubelet kubectl && \
    apt-get update && apt-get install -y kubelet=1.20.0-00 kubectl=1.20.0-00 && \
    apt-mark hold kubelet kubectl

Though on terminal, kubelet version was giving 1.20.0 and kubectl get nodes showing 1.19.0 and lab check was also failing.

Can you please share why this is happening.

note: After I see this discrepancy, then I run apt-get install kubelet-1.20.0-00

ALGOUTI Oussama:
did you install packages on all nodes?

Mayur Sharma:
@ALGOUTI Oussama, no as per lab question, it is for controlplane/master node only.

Hinodeya:
apt search kubeadm

Hinodeya:
apt install kubeadm=“version” -y

Hinodeya:
and normally it’s done

Hinodeya:
check the version of node after that

Hinodeya:
kubectl get node -o wide

Guru Raja:
@Mayur Sharma
If you receive an error like “E: Unable to locate package kubelet-1.20.0-00 …” two options

  1. Update your package list by “sudo apt-get update”.
  2. Check the kubelet-1.20.0-00 is right at the version.
    Hope this helps.

Mayur Sharma:
Thanks @Hinodeya and @Guru Raja