License server

Upgrade the license server

Move the license server to a new chart version, keeping its key, its license and its data.

Upgrading the license server is one helm upgrade with the values file you installed with. The license server keeps its signing key, its license, its admin credentials and its activity history, so nothing changes for developers or CI, and you don’t need anything from Tangram. Seats already checked out stay valid while the seat service restarts.

Before you begin

  • Read the release notes for the new chart version, for anything it adds or changes, such as a new volume or a new setting.
  • If you mirror images, copy the new version’s chart and images into your registry first, under the same paths as before. See Mirror the images.
  • Check your values file for image tags you set by hand: they’d keep the old images running on the new chart. Remove them, or move them to the new version.
  • Upgrade with your values file, rather than --reuse-values, which keeps the old chart’s defaults for anything your file doesn’t set.

1. Upgrade the release

Log in to the registry again, in case your last login has expired, then upgrade the release at the new version with your values file. This time, wait for the upgrade to finish: the license server’s license is already in place, so it starts without waiting for anything.

The upgrade runs the key-generation job again, which never replaces a key that’s already there. It keeps the admin token and the dashboard’s admin password, and replaces the seat service’s two copies one at a time, so one is always answering.

Upgrade the release
helm registry login <registry> \    --username <username> --password-stdinhelm upgrade license-manager --install \    oci://<registry>/<path>/license-manager \    -n tenon-licensing --version <chart-version> \    -f tenon-licensing-values.yaml \    --wait --timeout 5m

2. Check that it hands out seats

Check the rollout, then check from a machine with Tenon.

Check the upgrade
kubectl -n tenon-licensing rollout status \    deploy/license-manager-licensedtenon license status

Roll back

If the new version misbehaves, roll the release back to the version before. A rollback leaves your license and key alone, since they aren’t part of the release, and keeps your activity, which lives on its own volumes.

Roll back to the previous version
helm -n tenon-licensing history license-managerhelm -n tenon-licensing rollback license-manager

Next steps