Upgrade kubernetes from v1.20.15 to latest

Hello,

We have a old kubernetes cluster(v1.20.15) which is not upgraded for a long time. We got some time to work on it now. I need some suggestion on the best path to perform the upgrade.
According to my knowledge we can upgrade to one major version one after the other so it would take 8 times to get the cluster upgraded till v1.28.12. Is there a possibility to upgrade to latest by skipping the major version one by one?

Cluster information:

Kubernetes version: v1.20.15
Cloud being used: (put bare-metal if not on a public cloud): self-hosted(hosted with AWS ec2 nodes)
Installation method: Kops
Host OS: ubuntu 20.04-amd64
CNI and version: flannel
CRI and version: containerd://1.4.13

:wave: hello @sarathkumar,

This is a hard question for the community as you’re too far behind on patching the cluster.
What would I do in this situation:

  • take time to see all changes from this site → Kubernetes Release Notes
    • if you like more you can go here also → CHANGELOG
  • when you have this schedule how are you’re gonna perform patching :point_down:
    • I hope that you have some test cluster for this first, don’t do it on live in case something is missed

Is there a possibility to upgrade to latest by skipping the major version one by one?

  • If you have a test cluster to perform this try it. Take care also on network, storage etc that you mentioned to support this new version (check their docs also)

I hope that this helps to get a clue on how to proceed on this one :slight_smile: