Kubernetes upgrades
How to upgrade the version of Kubernetes in your cluster.
Upgrading your Kubernetes cluster is one of the tasks you must take on as an operator of Jenkins X. Kubernetes comes out with new releases regularly, and will only maintain releases for the three latest versions. Meaning if something breaks, or there is a security issue on an older version, Kubernetes will not fix it, but ask you to upgrade. All the major cloud providers only support a given set of latest versions.
Jenkins X supports the Kubernetes versions 1.23-1.30.
Upgrade procedure
- It is highly recommended to test upgrades on a separate cluster, where you have all the same setup as you use in production.
- Run Pluto to find any deprecated CRDs present in your cluster. You can run Pluto both on the cluster using
pluto detect-helm
, and on the files on your cluster repo usingpluto detect-files
- Cross-check the list of deprecations you find, with the list from Kubernetes and see what is required for the Kubernetes version you want to upgrade to.
- Fix what needs to be fixed, and deploy the changes.
- You may now start the upgrade of Kubernetes.
- Pour yourself a cup of your favorite drink while you sit back and wait for the magic to happen.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified October 14, 2022: fix: add shortcode displaying compatible k8s versions supported by Jenkins X (6816807ca1)