Skip to main content
Version: Preview

Install Addons

With the release of KubeBlocks v0.8.0, Addons are decoupled from KubeBlocks and some Addons are not installed by default. If you want to use these Addons, install Addons first by index. Or if you uninstalled some Addons, you can follow the steps in this tutorial to install them again.

This tutorial takes elasticsearch as an example. You can replace elasticsearch with the Addon you need.

The official index repo is KubeBlocks index. Addons are maintained in the KubeBlocks Addon repo.

note

Make sure the major version of Addons and KubeBlocks are the same.

For example, you can install an Addon v0.9.0 with KubeBlocks v0.9.2, but using mismatched major versions, such as an Addon v0.8.0 with KubeBlocks v0.9.2, may lead to errors.

  1. (Optional) Add the KubeBlocks repo. If you install KubeBlocks with Helm, just run helm repo update.

    helm repo add kubeblocks https://apecloud.github.io/helm-charts
    helm repo update
  2. View the Addon versions.

    helm search repo kubeblocks/elasticsearch --devel --versions
  3. Install the Addon (take elasticsearch as example). Specify a version with --version.

    helm install kb-addon-es kubeblocks/elasticsearch --namespace kb-system --create-namespace --version x.y.z
  4. Verify whether this Addon is installed.

    The STATUS is deployed and this Addon is installed successfully.

    helm list -A
    >
    NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
    ...
    kb-addon-es kb-system 1 2024-11-27 10:04:59.730127 +0800 CST deployed elasticsearch-0.9.0 8.8.2
  5. (Optional) You can run the command below to uninstall the Addon.

    If you have created a related cluster, delete the cluster first.

    helm uninstall kb-addon-es --namespace kb-system