Upgrade Guides
This guide covers how to upgrade KubeVela without disturbing running workloads. Scenarios differ from each other, so we strongly recommend testing the upgrade in a simulation environment before upgrading production.
KubeVela has a release cadence of every 2-3 months, and we only maintain the last 2 releases. As a result, you're highly recommended to upgrade along with the community. We strictly align with the semver version rule for compatibility.
Upgrade path
Upgrade one minor version at a time, for example v1.10 to v1.11, then v1.11 to v1.12. Before each step, read the version's release notes and its upgrade guide:
| Upgrade | Guide | Release notes |
|---|---|---|
| v1.11 to v1.12 | Upgrade from v1.11 to v1.12 | v1.12.x |
| v1.10 to v1.11 | Upgrade from v1.10 to v1.11 | v1.11.x |
| v1.9 to v1.10 | Upgrade from v1.9 to v1.10 | v1.10.x |
| v1.8 to v1.9 | Upgrade from v1.8 to v1.9 | v1.9.x |
| v1.7 to v1.8 | Upgrade from v1.7 to v1.8 | GitHub release |
| v1.6 to v1.7 | Upgrade from v1.6 to v1.7 | GitHub release |
| v1.5 to v1.6 | Upgrade from v1.5 to v1.6 | GitHub release |
| v1.4 to v1.5 | Upgrade from v1.4 to v1.5 | GitHub release |
| v1.3 to v1.4 | Upgrade from v1.3 to v1.4 | GitHub release |
| v1.2 to v1.3 | Upgrade from v1.2 to v1.3 | GitHub release |
| v1.1 to v1.2 | Upgrade from v1.1 to v1.2 | GitHub release |
A patch upgrade within the same minor version, for example v1.10.3 to v1.10.9, needs only the general procedure below. Check the patch's release notes for any chart or behaviour change.
General procedure
The version guides above add the steps specific to each version, such as upgrading the CRDs before the chart.
1. Upgrade CLI
- Script
- Homebrew
- Download directly from releases
- Docker
** MacOS/Linux **
curl -fsSl https://kubevela.io/script/install.sh | bash
Windows
Pre-release versions will not be listed.
powershell -Command "iwr -useb https://kubevela.io/script/install.ps1 | iex"
macOS/Linux
Update your brew first. Please note that the brew method only supports the installation of the official release version.
brew update
Then install KubeVela CLI
brew install kubevela
- Download the latest
velabinary file via release log. - Unzip the binary file, and configure the environment variables in
$PATH, and you're done.
sudo mv ./vela /usr/local/bin/vela
Installation Tips: If you are using a Mac system, it will pop up a warning that "vela" cannot be opened because the package from the developer cannot be verified.
MacOS imposes stricter restrictions on the software that can run in the system. You can temporarily solve this problem by opening System Preference ->Security & Privacy -> General and clicking on Allow Anyway.
Pull the latest image from the docker registry, or specify a version as tag:
docker pull oamdev/vela-cli:latest
2. Upgrade Vela Core
Please make sure you already upgraded the Vela CLI to latest stable version.
vela install
vela install updates the CRDs for you. If you install with Helm, apply the CRDs yourself before helm upgrade, because Helm never updates CRDs in a chart's crds/ directory; each version guide shows the commands.
3. Upgrade VelaUX
vela addon upgrade velaux
You can use advanced parameters provided by addons.