Skip to Content

Upgrades in Place

To upgrade an existing environment, run the installation commands of each release again with the new chart versions, in the install order, then run the verification. Most steps run again on their own. This page lists what to prepare before upgrading a release. The versions are the ones delivered for the release.

The Platform changelog, the IAM changelog and the release notes of Datacollection and Licensing list the changes in values between versions.

Platform and IAM

Upgrade the internal release before the external one. Before upgrading IAM, read the upgrade guide for each IAM version that the upgrade crosses, for example Upgrading IAM from 1.6.x to 1.7.0.

IAM applies its realm configuration with keycloak-config-cli, in a Job:

  • From IAM 1.6.2, a change to the realm configuration, to the keycloak-config-cli image or to the SMTP values gives the Job a new name, <release>-keycloak-config-cli-<hash>, so the configuration is applied again during the upgrade. A change to the SMTP password alone does not: the password is an environment reference, not part of the checksum.

  • Before IAM 1.6.2, remove the Job of the previous installation first, so that the configuration is applied again:

    kubectl -n <INTERNAL_NAMESPACE> delete job <INTERNAL_RELEASE>-keycloak-config-cli --ignore-not-found kubectl -n <EXTERNAL_NAMESPACE> delete job <EXTERNAL_RELEASE>-keycloak-config-cli --ignore-not-found
  • A changed Secret does not update the copy of its value that Keycloak holds; see IAM: External Secrets.

Warning

Desired state

keycloak-config-cli applies the realm configuration as the desired state of the realm, which can have unexpected results, including the deletion of Keycloak resources that were created by hand. Manage users, clients and permissions through IAM, not through the realm configuration.

Datacollection

Remove the Jobs of the previous installation before the upgrade, because a Job’s pod template cannot be changed in place and the chart’s Jobs are not hooks. rsh-init then registers again. It creates only clients that do not exist yet, so change an existing client in IAM. The first command removes the Jobs by the app in (...) selector. The second command, with the selector app.kubernetes.io/instance=<DATACOLLECTION_RELEASE>, is needed only when keycloak.enabled is true:

kubectl -n <INTERNAL_NAMESPACE> delete job -l 'app in (analytics-init,update-content,rsh-init)' --wait --timeout 2m kubectl -n <INTERNAL_NAMESPACE> delete job -l app.kubernetes.io/instance=<DATACOLLECTION_RELEASE> --wait --timeout 2m

Before upgrading to 26.4.0, install the Barman Cloud Plugin v0.15.1 in the cluster, and move oauth2ProxyCookieSecret from regulator-platform.platformProxy.ingress to regulator-platform.platformProxy.oauth2Proxy. The nats subchart and global.nats.url are removed in that version.

The registration of MDM-Module also takes the global entities context back to MDM; see Global entities.

Licensing

Apply the ConfigMap licensing-registration-endpoints again before the upgrade, so that the registration still leaves out getEntities and getEntityGroups and keeps getRoles and getCommunicationDimensions; see Registration endpoints. Run the upgrade with --force-conflicts.

Permissions

Permissions granted through IAM are kept across upgrades.