Hi Folks, What is the most convenient way to rollback kubeadm upgrade for ex: I' . . .

srikanth arani:
Hi Folks, What is the most convenient way to rollback kubeadm upgrade for ex: I’ve upgraded from v1.19.0 → v1.21.0 now I want to roll to last stable version v1.19.0 I tried apt-get install -y kubeadm=1.19.0-0
For some reason it’s not working as expected, could any one let me know what I’m missing here. Thanks!

Kosala Atapattu:
I doubt it will work quite like that. I believe when you upgrade, ETCD database gets upgraded as well. If you want to roll back, I’m expecting a restore of a pre upgrade etcd snapshot

Tej_Singh_Rana:
Hello, @srikanth arani
Hope you are gone through this lecture,
https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/14296062
You can’t skip minor version.
Even you can see in the official page, they provided steps to upgrade 1.18 → 1.19, 1.19 → 1.20 etc…

Tej_Singh_Rana:
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/

Kosala Atapattu:
kubeadm upgrades do not have a rollback

Vibhas:
Try adding --allow-downgrades

srikanth arani:
@Tej_Singh_Rana thanks for your response, I understand importance of 1 step at a time (it was by mistake copy paste effect) so what can I do in this situation
I’m curious about ROLLBACK as we haven’t discussed about it.