Upgrading Lagoon¶
When to use¶
When there is a need to upgrade Lagoon to a new patch or minor version.
References¶
Prerequisites¶
- A running dplsh launched from
./infrastructure
withDPLPLAT_ENV
set to the platform environment name. - Knowledge about the version of Lagoon you want to upgrade to.
- You can extract version (= chart version) and appVersion (= lagoon release version) for the lagoon-remote / lagoon-core charts via the following commands (replace lagoon-core for lagoon-remote if necessary).
Lagoon-core:
curl -s https://uselagoon.github.io/lagoon-charts/index.yaml \
| yq '.entries.lagoon-core[] | [.name, .appVersion, .version, .created] | @tsv'
Lagoon-remote:
curl -s https://uselagoon.github.io/lagoon-charts/index.yaml \
| yq '.entries.lagoon-remote[] | [.name, .appVersion, .version, .created] | @tsv'
- Knowledge of any breaking changes or necessary actions that may affect the platform when upgrading. See chart release notes for all intermediate chart releases.
Procedure¶
- Upgrade Lagoon core
- Backup the API and Keycloak dbs as described in the official documentation
- Bump the chart version
VERSION_LAGOON_CORE
ininfrastructure/environments/<env>/lagoon/lagoon-versions.env
- Perform a helm diff
DIFF=1 task lagoon:provision:core
- Perform the actual upgrade
task lagoon:provision:core
- Upgrade Lagoon remote
- Bump the chart version
VERSION_LAGOON_REMOTE
ininfrastructure/environments/<env>/lagoon/lagoon-versions.env
- Perform a helm diff
DIFF=1 task lagoon:provision:remote
- Perform the actual upgrade
task lagoon:provision:remote
- Take note in the output from Helm of any CRD updates that may be required
- Bump the chart version