-
Create new VM on the openstack cluster howto - you can also do it from your machine if you pull all the dependancies
- Use a standard Ubuntu image
- Go for a smallish flavor - eg l3.nano
- Attach a new FIP to it, or add the machine to the "internal" network (only available on dev)
- Use an already existing keypair - or generate a new one
-
After the new VM is created ssh to it and clone this repo
-
CD to the correct directory and follow these instructions: you don't need to change any values in the configs.
- Make sure your kube config context is set to the management cluster that manages the cluster you are trying to update: for example if updating the a dev cluster- you will need to point to a dev-management, if updating a dev-management you will need to point to a dev-management
- Go to the appropriate folder and change the values
kubernetesVersionandmachineImagein theuser-values.yamlto the new image version. To find out all the new images that are available please check https://openstack.stfc.ac.uk/project/images- For example if upgrading to version 1.32.4
- Set
kubernetesVersionto 1.32.4 - Set
machineImagetocapi-ubuntu-2204-kube-v1.32.4-2025-05-02 - Don't jump major versions if not on the latest path
- More info can be found here
- Find out the name of the cluster you are upgrading (to find out the name run
helm list -n clustersand look for the name that is the closest to the one you are upgrading. So for example prod cluster can be calledprod-v4) - Export the name by using
export CLUSTER_NAME=<name of the cluster> - After the config is updated simple run
helm upgradecommand `helm upgrade $CLUSTER_NAME capi/openstack-cluster --install -f values.yaml -f clouds.yaml -f user-values.yaml -f flavors.yaml -n clusters - Wait around 30 minutes and the cluster should be updated