apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.05k stars 167 forks source link

[BUG]kb install failed for install chart kubeblocks error on k8s 1.20 #6694

Closed ahjing99 closed 6 months ago

ahjing99 commented 6 months ago
 kbcli kubeblocks install --version 0.9.0-alpha.3
KubeBlocks will be installed to namespace "kb-system"
Kubernetes version 1.20.11
Kubernetes provider ACK
kbcli version 0.9.0-alpha.1
Collecting data from cluster                       OK
Kubernetes cluster preflight                       OK
  Warn
  - The default storage class was not found. To learn more details, please check https://help.aliyun.com/document_detail/189288.html; Alternatively use option --set storageClass=<storageClassName> when creating cluster
Create CRDs                                        OK
Add and update repo kubeblocks                     OK
Install KubeBlocks 0.9.0-alpha.3                   FAIL
error: install chart kubeblocks error: template: kubeblocks/templates/addons/xinference-addon.yaml:2:4: executing "kubeblocks/templates/addons/xinference-addon.yaml" at <include "kubeblocks.buildAddonCR" (merge (dict "kbVersion" ">=0.7.0" "selectorLabels" $selectorLabels "name" "xinference" "version" "0.1.0" "model" "LLM" "provider" "community" "description" "Xorbits Inference(Xinference) is a powerful and versatile library designed to serve language, speech recognition, and multimodal models." "autoInstall" false) .)>: error calling include: template: kubeblocks/templates/_addon.tpl:50:22: executing "kubeblocks.buildAddonCR" at <lookup "extensions.kubeblocks.io/v1alpha1" "Addon" "" .name>: error calling lookup: unable to get apiresource from unstructured: extensions.kubeblocks.io/v1alpha1, Kind=Addon: the server could not find the requested resource

When specify --check=false, kb can be installed

 kbcli kubeblocks install --version 0.9.0-alpha.3 --check=false
KubeBlocks will be installed to namespace "kb-system"
Collecting data from cluster                       OK
Kubernetes cluster preflight                       OK
  Warn
  - The default storage class was not found. To learn more details, please check https://help.aliyun.com/document_detail/189288.html; Alternatively use option --set storageClass=<storageClassName> when creating cluster
Create CRDs                                        OK
Add and update repo kubeblocks                     OK
Install KubeBlocks 0.9.0-alpha.3                   OK
Wait for addons to be enabled
  apecloud-mysql                                   OK
  clickhouse                                       OK
  kafka                                            OK
  mongodb                                          OK
  postgresql                                       OK
  pulsar                                           OK
  redis                                            OK

KubeBlocks 0.9.0-alpha.3 installed to namespace kb-system SUCCESSFULLY!

-> Basic commands for cluster:
    kbcli cluster create -h     # help information about creating a database cluster
    kbcli cluster list          # list all database clusters
    kbcli cluster describe <cluster name>  # get cluster information

-> Uninstall KubeBlocks:
    kbcli kubeblocks uninstall
ahjing99 commented 6 months ago

Seems CCE also has the same problem img_v3_028u_7fa72507-b21b-4d0f-bf87-22d3d3ac583g