I’m confused with this question, it’s asking to upgrade to v1.20.0 but
kubeadm upgrade plan is showing
Doesn’t the kubeadm version have to match the kubernetes version?
You did already install kubeadm 1.20.00? It can’t upgrade without it.
I did and it worked. I guess I didn’t understand the output of kubeadm upgrade plan.
I thought that it would show the highest stable version, ie. 1.24 not 1.19.16
You can now apply the upgrade by executing the following command: kubeadm upgrade apply v1.19.16 Note: Before you can perform this upgrade, you have to update kubeadm to v1.19.16.
The previous question asked what is the version that I could upgrade to and the answer was 1.19.16
so I was not expecting the next question to ask me to upgrade to 1.20.0
Sorry if i’m rambling but I think I figured out what i’m trying to ask What is the relationship between the kubeadm version and k8s version?
should they match, can one be higher than the other?
The official docs say a variance of one minor version is supported so that we can do things like upgrades
So for each node, beginning with the control plane, you go
- Upgrade kubeadm
- Upgrade the node
- Upgrade kubelet and restart it
- Upgrade kubectl if present
If you need to upgrade several versions, e.g to 1.23 you have to repeat the above steps for each of the versions in between, 1.20 -> 1.21 -> 1.22 -> 1.23
got it now. (thinking out loud). kubeadm plan does actually spit out the most recent version (1.24.1)
so, you can either go to 1.9.x or 1.20.x.
BUT before you do that, you must upgrade kubeadmin to that version.
Thanks @Alistair Mackay
I0604 16:47:59.849178 34093 version.go:255] remote version is much newer: v1.24.1; falling back to: stable-1.19