Upgrading
It is recommended that you keep your Kubernetes deployment updated to the latest available stable version. You should also update the other applications which make up Charmed Kubernetes. Keeping up to date ensures you have the latest bug-fixes and security patches for smooth operation of your cluster.
New minor versions of Kubernetes are set to release three times per year. You can check the latest release version on the Kubernetes release page on GitHub.
You can see which version of each application is currently deployed by running:
juju status
The 'App' section of the output lists each application and its version number. Note that this is the version of the upstream application deployed. The version of the Juju charm is indicated under the column titled 'Rev'. The charms may be updated in between new versions of the application.
Before you begin
As with all upgrades, there is a possibility that there may be unforeseen difficulties. It is highly recommended that you make a backup of any important data, including any running workloads. For more details on creating backups, see the separate documentation on backups.
You should also make sure:
- The machine from which you will perform the backup has sufficient internet access to retrieve updated software
- Your cluster is running normally
- Your Juju client and controller/models are running the same, stable version of Juju (see the Juju docs)
- You read the Upgrade notes to see if any caveats apply to the versions you are upgrading to/from
- You read the Release notes for the version you are upgrading to, which will alert you to any important changes to the operation of your cluster
- You read the Upstream release notes for details of Kubernetes deprecation notices and API changes that may impact your workloads
It is also important to understand that Charmed Kubernetes will only upgrade and if necessary migrate, components relating specifically to elements of Kubernetes installed and configured as part of Charmed Kubernetes. This may not include any customised configuration of Kubernetes, or user generated objects (e.g. storage classes) or deployments which rely on deprecated APIs.
Specific upgrade instructions
We have never recommended skipping a version in an upgrade and do not provide generic upgrade instructions for any version of Charmed Kubernetes. Please follow the specific upgrade documentation for the version you are upgrading to.
Supported versions
Older versions
- Upgrading from 1.25.x to 1.26.x
- Upgrading from 1.24.x to 1.25.x
- Upgrading from 1.23.x to 1.24.x
- Upgrading from 1.22.x to 1.23.x
- Upgrading from 1.21.x to 1.22.x
- Upgrading from 1.20.x to 1.21.x
- Upgrading from 1.19.x to 1.20.x
- Upgrading from 1.18.x to 1.19.x
- Upgrading from 1.17.x to 1.18.x
Verify an Upgrade
Once an upgrade is complete and units settle, the output from:
juju status
... should indicate that all units are active and the correct version of Kubernetes is running.
It is recommended that you run a cluster validation to ensure that the cluster is fully functional.
See the guide to contributing or discuss these docs in our public Mattermost channel.