Upgrade from v1.8 to v1.9
Read the v1.9.0 release notes before you upgrade. If you set --pprof-addr, --disable-caps or the ApplyResourceByUpdate feature gate in custom controller arguments, update them first; v1.9 renames or removes them.
caution
- Legacy code removal. Basically you will not be able to use EnvBinding, HealthScope, ScopeDefinition and other objects in old KubeVela (
<1.0), like ApplicationConfiguration. - Registry migrated from kubevela.net OSS storage to GitHub pages.
Notice: the "hub.kubevela.net", "charts.kubevela.net" and "addons.kubevela.net" will not be served in the future.
- For docker images in "hub.kubevela.net", replace it with "docker.io" or "ghcr.io/kubevela".
- For helm charts in "charts.kubevela.net", replace it with "kubevela.github.io/charts".
- For addons in "addons.kubevela.net", replace it with "kubevela.github.io/catalog/official".
You can run the following command to update your addon registry.
vela addon registry delete KubeVelavela addon registry add KubeVela --type helm --endpoint=https://kubevela.github.io/catalog/officialvela addon registry add experimental --type helm --endpoint=https://kubevela.github.io/catalog/experimental
- Upgrade the CRDs first. v1.9 drops the legacy fields from the Application and definition CRDs,
and Helm does not upgrade the CRDs in a chart's
crds/directory:
helm repo remove kubevela 2>/dev/null || true
helm repo add kubevela https://kubevela.github.io/charts
helm repo update
helm pull kubevela/vela-core --version 1.9.5 --untar
kubectl apply --server-side --force-conflicts -f vela-core/crds/
The healthscopes, scopedefinitions and rollouts CRDs are no longer in the chart. kubectl apply
does not delete them.
- Upgrade your kubevela chart
helm upgrade -n vela-system --install kubevela kubevela/vela-core --version 1.9.5 --wait