Operate
Upgrade
An upgrade backs up first, then takes the new bundle and images. Migrations run before the new control plane starts. Nothing is reinstalled and no data is touched.
To the latest version#
$ sudo bastionos upgradeWithout a version, it goes to the latest stable one, or says that the bastion is already up to date. A version can be named:
$ sudo bastionos upgrade 1.2.0What happens:
- a backup into
/var/dck/bastionos/backups/<UTC time>(skip it with--no-backuponly if you just took one); - the deployment bundle of that version, its signature checked;
- the images, pulled;
- the database migrations, then the control plane, then the gateways.
A gateway that restarts stops taking new sessions and waits a short time for open ones to end, then closes them: upgrade at a quiet time. Read the version's notes first: some versions say what to do before upgrading.
The installation line does the same on an installed host: curl … | sudo bash -s 1.2.0.
Community to Enterprise#
No reinstallation and no migration of data:
- Import the Enterprise license in Console → System → License (see License).
- On the host:
$ sudo bastionos upgrade --edition enterpriseThe command asks the Control Center for the signed Enterprise archive of the installed version, which it gives only for a valid license bound to this installation. It checks the archive's signature, loads the images and swaps the control plane and gateways. Every row is kept.
Going back:
$ sudo bastionos upgrade --edition communityEnterprise data stays in the database, unused, and comes back if you return to Enterprise.
Without Internet access#
Download the three files of the release (archive, checksums and signature) from the customer portal, copy them to a folder of the host, and point the command at it:
$ sudo bastionos upgrade --edition enterprise --bundle /root/bastionos-1.2.0For a whole air-gapped installation, see Air-gapped bundle.
With Helm#
helm upgrade with the new chart version. Migrations run in a pre-upgrade hook, before the new pods start. See Kubernetes with Helm.