Not able to upgrade kubelet and kubectl on the cluster

Hi,

I am trying to solve this question :
Upgrade the controlplane components to exact version v1.29.0

Upgrade the kubeadm tool (if not already), then the controlplane components, and finally the kubelet. Practice referring to the Kubernetes documentation page.

While update the kubelet and kubectl by using this command : controlplane ~ → sudo apt-get update && sudo apt-get install -y kubelet=1.28.0-00 kubectl=1.28.0-00

It is giving me a output

Hit:2 Index of linux/ubuntu/ focal InRelease
Hit:1 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.28/deb InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 Index of /ubuntu focal-security InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Version ‘1.28.0-00’ for ‘kubelet’ was not found
E: Version ‘1.28.0-00’ for ‘kubectl’ was not found

Regards
Rajan

You don’t need to upgrade kubectl and kubelet to 1.28 in order to upgrade to 1.29. So this is a bit confused. You may want to try reading this to make sure that you understand the upgrade process.