-
View the index.
kbcli creates an index named kubeblocks
by default and you can check whether this index is created by running kbcli addon index list
.
kbcli addon index list
>
INDEX URL
kubeblocks https://github.com/apecloud/block-index.git
If the list is empty or you want to add your index, you can add the index manually by using kbcli addon index add <index-name> <source>
. For example,
kbcli addon index add kubeblocks https://github.com/apecloud/block-index.git
If you are not sure whether the kubeblocks index is the latest version, you can update it.
kbcli addon index update kubeblocks
-
(Optional) Search whether the Addon exists in the index.
kbcli addon search elasticsearch
>
ADDON VERSION INDEX
elasticsearch 0.7.0 kubeblocks
elasticsearch 0.7.1 kubeblocks
elasticsearch 0.7.2 kubeblocks
elasticsearch 0.8.0 kubeblocks
elasticsearch 0.9.0 kubeblocks
-
Install the Addon.
If there are multiple index sources and versions for an Addon, you can specify an index by --index
and a version by --version
. The system installs the latest version in the kubeblocks
index by default.
kbcli addon install elasticsearch --index kubeblocks --version x.y.z
-
Verify whether this Addon is installed.
The STATUS is Enabled
and this Addon is installed successfully.
kbcli addon list
>
NAME VERSION PROVIDER STATUS AUTO-INSTALL
elasticsearch 0.9.0 apecloud Enabled true
-
(Optional) You can run the command below to disable the Addon.
If you have created a related cluster, delete the cluster first.
kbcli addon disable elasticsearch
Or you can run the command below to uninstall the Addon.
kbcli addon uninstall elasticsearch
kbcli supports enable/disable an Addon. You can enable/disable Addons according to your need. Moreover, when installing KubeBlocks by kbcli, some Addons are installed but remain disabled by default, with their status shown as Disabled
. You can enable them by kbcli. For example,
kbcli addon list
>
NAME VERSION PROVIDER STATUS AUTO-INSTALL
alertmanager-webhook-adaptor 0.1.4 apecloud Disabled false
apecloud-otel-collector 0.1.2-beta.3 apecloud Disabled false
aws-load-balancer-controller 1.4.8 community Disabled false
csi-driver-nfs 4.5.0 community Disabled false
csi-hostpath-driver 0.7.0 community Disabled false
grafana 6.43.5 community Disabled false
llm 0.9.0 community Disabled false
prometheus 15.16.1 community Disabled false
qdrant 0.9.1 community Disabled false
victoria-metrics-agent 0.8.41 community Disabled false
After enabling/disabling an Addon, check the Addon list to verify whether the Addon's status changes as required.
kbcli addon list
>
NAME VERSION PROVIDER STATUS AUTO-INSTALL
qdrant 0.9.1 community Enabled false