Hi All, i have very small doubt in cluster upgrade q: which version we have to u . . .

Priyanka Maheshwari:
Hi All, i have very small doubt in cluster upgrade q: which version we have to upgrade ?? 1) it will be ask in ques it self 2) If we run kubeadm upgrade plan thn we are getting version also

Priyanka Maheshwari:
ex: in q ask is

Priyanka Maheshwari:

Priyanka Maheshwari:
and if we run kubeadm upgrade plan

Priyanka Maheshwari:

Priyanka Maheshwari:
if we will use version from ques thn what is use of these version???

Priyanka Maheshwari:
i am confused here what exact version (from where) i need to take to upgrade kubectl

Vitor Jr.:
The command is showing the versions available for your current major version: 1.19.x

Vitor Jr.:
The question is asking you to upgrade exactly to 1.20.0

Vitor Jr.:
Don’t overcomplicate yourself thinking about this.

Vitor Jr.:
Do what the question asks and you are good to go. :slight_smile:

Priyanka Maheshwari:
so what is use to run kubeadm upgrade plan :disappointed:

Priyanka Maheshwari:
and looks in kubernates documentation site we have diff set of cmds as compare to this solution by –> https://wipro.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/18277588#overview

Priyanka Maheshwari:

Priyanka Maheshwari:
easy to understand from here but in kubenates docs it is lil tough to understand method , not sure may be i am wrong here

Shwetha:
kubeadm upgrade plan tells you to what versions you can upgrade to with your current kubeadm version. in your case, you can easily jump to v1.19.16.–> If the Q asked you to do that, you could have directly gone ahead with the kubeadm upgrade apply v1.19.16
However, since the question asks you to specifically upgrade to a version that doesnt appear in your list, you have to update your kubeadm to v1.20.0 (apt install kubeadm=1.20.0-00) after which if you run kubeadm upgrade plan , it will show that now that you can upgrade your k8s version to 1.20.0. After this you can run kubeadm upgrade apply v1.20.0
Lastly, you will update the kubelet and kubectl.
If I remember correctly, the upgrade plan also runs some checks to validate that you can upgrade to the said version.

Priyanka Maheshwari:
hmm ok Thanks @Vitor Jr. and @Shwetha

Priyanka Maheshwari:
Followed all steps , how it is possible?

Priyanka Maheshwari:

Priyanka Maheshwari:
version updated but in kubectl get nodes cmd still showing old version