Step 1: Update Custom Resource Definitions (CRDs)
KubeBlocks separates CRDs from the Helm chart to reduce chart size. Start by updating the CRDs:
kubectl replace -f https://github.com/apecloud/kubeblocks/releases/download/v1.0.1/kubeblocks_crds.yaml
Step 2: Upgrade KubeBlocks Core
First, update your Helm repository to get the latest chart information:
helm repo add kubeblocks https://apecloud.github.io/helm-charts
helm repo update kubeblocks
Then upgrade KubeBlocks to the target version:
helm -n kb-system upgrade kubeblocks kubeblocks/kubeblocks --version v1.0.1
Step 3: (Optional) Upgrade Addons
We are glad to announce that since KubeBlocks 1.0.0, each ComponentDefinition
CR has its own version (usually the same as its Addon version), existing Clusters will not be affected by the Addon upgrade.
But it is still recommended to test upgrade Addons in a non-production environment first.
To upgrade Addons to the versions bundled with the new KubeBlocks version:
helm -n kb-system upgrade kubeblocks kubeblocks/kubeblocks --version v1.0.1 --set upgradeAddons=true
Or you want to upgrade specific Addons follow the steps in Upgrade Addons