命令

helm upgrade –install -n kubesphere-system –create-namespace ks-core https://charts.kubesphere.io/main/ks-core-1.1.2.tgz \

–set global.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks \

–set extension.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks \

–debug –wait

输出

history.go:56: 2024-10-14 18:04:00.100275948 +0800 CST m=+0.065130446 [debug] getting history for release ks-core

Release “ks-core” does not exist. Installing it now.

install.go:224: 2024-10-14 18:04:00.115914866 +0800 CST m=+0.080769363 [debug] Original chart version: ""

install.go:241: 2024-10-14 18:04:01.800663675 +0800 CST m=+1.765518183 [debug] CHART PATH: /root/.cache/helm/repository/ks-core-1.1.2.tgz

client.go:142: 2024-10-14 18:04:01.883231696 +0800 CST m=+1.848086193 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:01.916373153 +0800 CST m=+1.881227661 [debug] CRD applications.app.k8s.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:01.942534443 +0800 CST m=+1.907388944 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:01.960669257 +0800 CST m=+1.925523756 [debug] CRD applicationreleases.application.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:01.985996416 +0800 CST m=+1.950850919 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.005452848 +0800 CST m=+1.970307350 [debug] CRD applications.application.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.030612508 +0800 CST m=+1.995467008 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.049147593 +0800 CST m=+2.014002116 [debug] CRD applicationversions.application.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.075313649 +0800 CST m=+2.040168150 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.093177105 +0800 CST m=+2.058031588 [debug] CRD categories.application.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.117552703 +0800 CST m=+2.082407204 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.137272921 +0800 CST m=+2.102127416 [debug] CRD repos.application.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.163227809 +0800 CST m=+2.128082309 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.183840948 +0800 CST m=+2.148695441 [debug] CRD clusters.cluster.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.209482118 +0800 CST m=+2.174336618 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.226984163 +0800 CST m=+2.191838663 [debug] CRD labels.cluster.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.252806958 +0800 CST m=+2.217661459 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.27213678 +0800 CST m=+2.236991273 [debug] CRD apiservices.extensions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.296844295 +0800 CST m=+2.261698808 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.315767303 +0800 CST m=+2.280621795 [debug] CRD extensionentries.extensions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.341455354 +0800 CST m=+2.306309855 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.364832908 +0800 CST m=+2.329687403 [debug] CRD jsbundles.extensions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.390436037 +0800 CST m=+2.355290539 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.41066189 +0800 CST m=+2.375516371 [debug] CRD reverseproxies.extensions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.434927779 +0800 CST m=+2.399782280 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.453041513 +0800 CST m=+2.417896009 [debug] CRD ingressclassscopes.gateway.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.478550497 +0800 CST m=+2.443405010 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.49632604 +0800 CST m=+2.461180533 [debug] CRD builtinroles.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.520244445 +0800 CST m=+2.485098945 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.538650056 +0800 CST m=+2.503504553 [debug] CRD categories.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.563837197 +0800 CST m=+2.528691708 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.582782172 +0800 CST m=+2.547636668 [debug] CRD clusterrolebindings.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.607428928 +0800 CST m=+2.572283429 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.625481479 +0800 CST m=+2.590335986 [debug] CRD clusterroles.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.649594513 +0800 CST m=+2.614449014 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.668890874 +0800 CST m=+2.633745367 [debug] CRD globalrolebindings.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.693843004 +0800 CST m=+2.658697506 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.712798938 +0800 CST m=+2.677653440 [debug] CRD globalroles.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.737304451 +0800 CST m=+2.702158952 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.754749272 +0800 CST m=+2.719603768 [debug] CRD groupbindings.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.780380904 +0800 CST m=+2.745235408 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.799071883 +0800 CST m=+2.763926380 [debug] CRD groups.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.824418657 +0800 CST m=+2.789273172 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.842666151 +0800 CST m=+2.807520646 [debug] CRD loginrecords.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.86684137 +0800 CST m=+2.831695871 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.884360717 +0800 CST m=+2.849215197 [debug] CRD rolebindings.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.909587241 +0800 CST m=+2.874441742 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.928952299 +0800 CST m=+2.893806780 [debug] CRD roles.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.953264314 +0800 CST m=+2.918118814 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:02.971476994 +0800 CST m=+2.936331495 [debug] CRD roletemplates.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:02.997120397 +0800 CST m=+2.961974898 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.01548113 +0800 CST m=+2.980335632 [debug] CRD users.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.04153041 +0800 CST m=+3.006384912 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.062274727 +0800 CST m=+3.027129222 [debug] CRD workspacerolebindings.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.089535362 +0800 CST m=+3.054389864 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.109095635 +0800 CST m=+3.073950114 [debug] CRD workspaceroles.iam.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.134309989 +0800 CST m=+3.099164490 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.151737027 +0800 CST m=+3.116591519 [debug] CRD categories.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.177709084 +0800 CST m=+3.142563586 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.198258876 +0800 CST m=+3.163113356 [debug] CRD extensions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.223365386 +0800 CST m=+3.188219887 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.242165315 +0800 CST m=+3.207019795 [debug] CRD extensionversions.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.268382 +0800 CST m=+3.233236501 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.288510195 +0800 CST m=+3.253364682 [debug] CRD installplans.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.31324104 +0800 CST m=+3.278095541 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.332350406 +0800 CST m=+3.297204898 [debug] CRD repositories.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.357622183 +0800 CST m=+3.322476684 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.376472883 +0800 CST m=+3.341327402 [debug] CRD serviceaccounts.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.407394476 +0800 CST m=+3.372249006 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.434824361 +0800 CST m=+3.399678843 [debug] CRD resourcequotas.quota.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.460075349 +0800 CST m=+3.424929892 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.480884306 +0800 CST m=+3.445738820 [debug] CRD provisionercapabilities.storage.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.505903775 +0800 CST m=+3.470758276 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.52382307 +0800 CST m=+3.488677565 [debug] CRD storageclasscapabilities.storage.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.549380528 +0800 CST m=+3.514235029 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.567229797 +0800 CST m=+3.532084290 [debug] CRD workspaces.tenant.kubesphere.io is already present. Skipping.

client.go:142: 2024-10-14 18:04:03.592502756 +0800 CST m=+3.557357285 [debug] creating 1 resource(s)

install.go:175: 2024-10-14 18:04:03.612822185 +0800 CST m=+3.577676679 [debug] CRD workspacetemplates.tenant.kubesphere.io is already present. Skipping.

Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: “restart-extensions-museum” namespace: “kubesphere-system” from "": no matches for kind “CronJob” in version “batch/v1beta1”

ensure CRDs are installed first, resource mapping not found for name: “system-workspace” namespace: "“ from ”": no matches for kind “WorkspaceTemplate” in version “tenant.kubesphere.io/v1beta1”

ensure CRDs are installed first]

helm.go:86: 2024-10-14 18:04:12.280929621 +0800 CST m=+12.245784119 [debug] [resource mapping not found for name: “restart-extensions-museum” namespace: “kubesphere-system” from "": no matches for kind “CronJob” in version “batch/v1beta1”

ensure CRDs are installed first, resource mapping not found for name: “system-workspace” namespace: "“ from ”": no matches for kind “WorkspaceTemplate” in version “tenant.kubesphere.io/v1beta1”

ensure CRDs are installed first]

unable to build kubernetes objects from release manifest

helm.sh/helm/v3/pkg/action.(*Install).RunWithContext

    helm.sh/helm/v3/pkg/action/install.go:334

main.runInstall

    helm.sh/helm/v3/cmd/helm/install.go:316

main.newUpgradeCmd.func2

    helm.sh/helm/v3/cmd/helm/upgrade.go:159

github.com/spf13/cobra.(*Command).execute

    github.com/spf13/cobra@v1.8.1/command.go:985

github.com/spf13/cobra.(*Command).ExecuteC

    github.com/spf13/cobra@v1.8.1/command.go:1117

github.com/spf13/cobra.(*Command).Execute

    github.com/spf13/cobra@v1.8.1/command.go:1041

main.main

    helm.sh/helm/v3/cmd/helm/helm.go:85

runtime.main

    runtime/proc.go:271

runtime.goexit

    runtime/asm_amd64.s:1695

您在部署阿里云ACK Pro版的ks-core-1.1.2时遇到了错误。错误信息表明,在尝试构建Kubernetes对象时,无法找到名为"restart-extensions-museum"的CronJob资源,以及名为"system-workspace"的WorkspaceTemplate资源。这通常是因为相应的Custom Resource Definitions (CRDs)尚未安装或配置正确。

以下是一些可能的解决步骤:

  1. 确保所有的CRDs都已正确安装。您可以使用kubectl get crds命令来检查CRDs的状态。

  2. 检查是否有任何CRDs因为权限问题或其他原因而未能安装。

  3. 确认您的Kubernetes集群版本与ks-core-1.1.2兼容。

  4. 如果您正在使用自定义的命名空间,请确保CronJob和WorkspaceTemplate资源是在正确的命名空间中创建的。

  5. 检查Helm图表中的配置文件,确保所有的资源定义都是正确的。

如果以上步骤都不能解决问题,可能需要更详细地检查您的Kubernetes集群配置和Helm图表的具体内容。

以上内容来源于互联网,仅供参考和借鉴。

no matches for kind “CronJob” in version “batch/v1beta1”
看起来是 ack 集群版本号比较特殊,没有正确识别到ack的版本号。
最新的 chart 中已经优化了对k8s版本号的识别,可以用最新的chart尝试安装。
https://github.com/kubesphere/kubesphere/blob/6a2f78ef0f3c8e0497095da831415f4e672dc14a/config/ks-core/templates/extension-museum.yaml#L89

    Cauchy 89行到结尾么?格式不对呢,,能贴一个可执行的么?YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 2, column 5: kind: CronJob ^

    Cauchy

    tke中的版本也是这个问题,tkek8s版本号为v1.30.0-tke.1这种格式,也需要适配

    @cy5649293 @sxd
    可以把 chart fetch 到本地,修改 templates/extension-museum.yaml 第89行为以下内容,然后指定本地chart安装,近期更新的 ks-core chart 中会包含这类特殊版本号的适配。

    # fetch chart 
    helm fetch https://charts.kubesphere.io/main/ks-core-1.1.2.tgz
    # https://github.com/kubesphere/kubesphere/blob/6a2f78ef0f3c8e0497095da831415f4e672dc14a/config/ks-core/templates/extension-museum.yaml#L89
    apiVersion: {{ if semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version }}batch/v1{{ else }}batch/v1beta1{{end}}

      Cauchy 您好 https://github.com/kubesphere/kubesphere/blob/6a2f78ef0f3c8e0497095da831415f4e672dc14a/config/ks-core/templates/extension-museum.yaml#L89里面的内容和https://charts.kubesphere.io/main/ks-core-1.1.2.tgz压缩里面的内容由细微差别,内容覆盖到本地了

      < apiVersion: {{ if semverCompare “>=1.21.0-0” .Capabilities.KubeVersion.Version }}batch/v1{{ else }}batch/v1beta1{{end}}

      ---

      apiVersion: {{ if semverCompare “>=1.20.0” .Capabilities.KubeVersion.Version }}batch/v1{{ else }}batch/v1beta1{{end}}

      执行命令helm install ks-core ./ks-core-1.1.2.tgz –namespace kubesphere-system –debug –wait输出:

      install.go:224: 2024-10-18 16:06:00.260086979 +0800 CST m=+0.039818337 [debug] Original chart version: ""

      install.go:241: 2024-10-18 16:06:00.260138712 +0800 CST m=+0.039870021 [debug] CHART PATH: /root/ks-core-1.1.2.tgz

      client.go:142: 2024-10-18 16:06:00.351990988 +0800 CST m=+0.131722297 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.39148143 +0800 CST m=+0.171212736 [debug] CRD applications.app.k8s.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.417673753 +0800 CST m=+0.197405065 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.439041773 +0800 CST m=+0.218773082 [debug] CRD applicationreleases.application.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.464401748 +0800 CST m=+0.244133071 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.485575565 +0800 CST m=+0.265306875 [debug] CRD applications.application.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.51368271 +0800 CST m=+0.293414036 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.536604565 +0800 CST m=+0.316335870 [debug] CRD applicationversions.application.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.561599213 +0800 CST m=+0.341330557 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.582220443 +0800 CST m=+0.361951746 [debug] CRD categories.application.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.614851872 +0800 CST m=+0.394583226 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.635665725 +0800 CST m=+0.415397038 [debug] CRD repos.application.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.66083479 +0800 CST m=+0.440566135 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.685294227 +0800 CST m=+0.465025533 [debug] CRD clusters.cluster.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.70980498 +0800 CST m=+0.489536325 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.730851089 +0800 CST m=+0.510582392 [debug] CRD labels.cluster.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.756375493 +0800 CST m=+0.536106827 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.778404178 +0800 CST m=+0.558135491 [debug] CRD apiservices.extensions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.804179399 +0800 CST m=+0.583910747 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.827019836 +0800 CST m=+0.606751127 [debug] CRD extensionentries.extensions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.852783929 +0800 CST m=+0.632515242 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.875792369 +0800 CST m=+0.655523660 [debug] CRD jsbundles.extensions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.901984315 +0800 CST m=+0.681715692 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.925142348 +0800 CST m=+0.704873655 [debug] CRD reverseproxies.extensions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:00.949964618 +0800 CST m=+0.729696000 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:00.972524752 +0800 CST m=+0.752256064 [debug] CRD ingressclassscopes.gateway.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.006491297 +0800 CST m=+0.786222640 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.029748993 +0800 CST m=+0.809480290 [debug] CRD builtinroles.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.05648069 +0800 CST m=+0.836212003 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.077521962 +0800 CST m=+0.857253269 [debug] CRD categories.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.102068402 +0800 CST m=+0.881799746 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.124900673 +0800 CST m=+0.904631964 [debug] CRD clusterrolebindings.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.151197171 +0800 CST m=+0.930928483 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.173542126 +0800 CST m=+0.953273420 [debug] CRD clusterroles.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.198760594 +0800 CST m=+0.978491936 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.220480709 +0800 CST m=+1.000212015 [debug] CRD globalrolebindings.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.248851958 +0800 CST m=+1.028583286 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.272835531 +0800 CST m=+1.052566822 [debug] CRD globalroles.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.30613758 +0800 CST m=+1.085868903 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.328164797 +0800 CST m=+1.107896104 [debug] CRD groupbindings.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.35464056 +0800 CST m=+1.134371873 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.375191083 +0800 CST m=+1.154922389 [debug] CRD groups.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.418470689 +0800 CST m=+1.198202031 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.44052246 +0800 CST m=+1.220253769 [debug] CRD loginrecords.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.465986685 +0800 CST m=+1.245718022 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.489329591 +0800 CST m=+1.269060882 [debug] CRD rolebindings.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.516561725 +0800 CST m=+1.296293069 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.537213125 +0800 CST m=+1.316944431 [debug] CRD roles.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.56330196 +0800 CST m=+1.343033272 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.585927233 +0800 CST m=+1.365658547 [debug] CRD roletemplates.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.62307083 +0800 CST m=+1.402802147 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.645207592 +0800 CST m=+1.424938904 [debug] CRD users.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.670210172 +0800 CST m=+1.449941485 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.689846211 +0800 CST m=+1.469577517 [debug] CRD workspacerolebindings.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.715474996 +0800 CST m=+1.495206339 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.738273568 +0800 CST m=+1.518004881 [debug] CRD workspaceroles.iam.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.762161361 +0800 CST m=+1.541892678 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.784295664 +0800 CST m=+1.564026970 [debug] CRD categories.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.810119797 +0800 CST m=+1.589851145 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.831933724 +0800 CST m=+1.611665015 [debug] CRD extensions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.857400459 +0800 CST m=+1.637131771 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.878917169 +0800 CST m=+1.658648480 [debug] CRD extensionversions.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.911511826 +0800 CST m=+1.691243138 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.937848875 +0800 CST m=+1.717580179 [debug] CRD installplans.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:01.963144599 +0800 CST m=+1.742875911 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:01.981144674 +0800 CST m=+1.760875977 [debug] CRD repositories.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.006130887 +0800 CST m=+1.785862200 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.027157058 +0800 CST m=+1.806888364 [debug] CRD serviceaccounts.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.053192806 +0800 CST m=+1.832924117 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.076317262 +0800 CST m=+1.856048566 [debug] CRD resourcequotas.quota.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.10142335 +0800 CST m=+1.881154656 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.122221273 +0800 CST m=+1.901952584 [debug] CRD provisionercapabilities.storage.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.147557322 +0800 CST m=+1.927288664 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.168350598 +0800 CST m=+1.948081907 [debug] CRD storageclasscapabilities.storage.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.195313264 +0800 CST m=+1.975044586 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.216042833 +0800 CST m=+1.995774136 [debug] CRD workspaces.tenant.kubesphere.io is already present. Skipping.

      client.go:142: 2024-10-18 16:06:02.240357691 +0800 CST m=+2.020089038 [debug] creating 1 resource(s)

      install.go:175: 2024-10-18 16:06:02.261063142 +0800 CST m=+2.040794446 [debug] CRD workspacetemplates.tenant.kubesphere.io is already present. Skipping.

      Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: “restart-extensions-museum” namespace: “kubesphere-system” from "": no matches for kind “CronJob” in version “batch/v1beta1”

      ensure CRDs are installed first

      helm.go:86: 2024-10-18 16:06:10.293486932 +0800 CST m=+10.073218270 [debug] resource mapping not found for name: “restart-extensions-museum” namespace: “kubesphere-system” from "": no matches for kind “CronJob” in version “batch/v1beta1”

      ensure CRDs are installed first

      unable to build kubernetes objects from release manifest

      helm.sh/helm/v3/pkg/action.(*Install).RunWithContext

          helm.sh/helm/v3/pkg/action/install.go:334

      main.runInstall

          helm.sh/helm/v3/cmd/helm/install.go:316

      main.newInstallCmd.func2

          helm.sh/helm/v3/cmd/helm/install.go:156

      github.com/spf13/cobra.(*Command).execute

          github.com/spf13/cobra@v1.8.1/command.go:985

      github.com/spf13/cobra.(*Command).ExecuteC

          github.com/spf13/cobra@v1.8.1/command.go:1117

      github.com/spf13/cobra.(*Command).Execute

          github.com/spf13/cobra@v1.8.1/command.go:1041

      main.main

          helm.sh/helm/v3/cmd/helm/helm.go:85

      runtime.main

          runtime/proc.go:271

      runtime.goexit

          runtime/asm_amd64.s:1695

      INSTALLATION FAILED

      main.newInstallCmd.func2

          helm.sh/helm/v3/cmd/helm/install.go:158

      github.com/spf13/cobra.(*Command).execute

          github.com/spf13/cobra@v1.8.1/command.go:985

      github.com/spf13/cobra.(*Command).ExecuteC

          github.com/spf13/cobra@v1.8.1/command.go:1117

      github.com/spf13/cobra.(*Command).Execute

          github.com/spf13/cobra@v1.8.1/command.go:1041

      main.main

          helm.sh/helm/v3/cmd/helm/helm.go:85

      runtime.main

          runtime/proc.go:271

      runtime.goexit

          runtime/asm_amd64.s:1695

      Cauchy 添加member节点时无法修改chart的内容,主集群已经下载chart包到本地修改了安装完成了

      添加 member 集群的时候,配置这么写:

      ksExtensionRepository:
        enabled: false

      Error: INSTALLATION FAILED: Unable to continue with install: Category “observability” in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key “app.kubernetes.io/managed-by”: must be set to “Helm”; annotation validation error: missing key “meta.helm.sh/release-name”: must be set to “ks-core”; annotation validation error: missing key “meta.helm.sh/release-namespace”: must be set to “kubesphere-system”

      helm.go:86: 2024-10-18 19:31:42.111348027 +0800 CST m=+10.353621738 [debug] Category “observability” in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key “app.kubernetes.io/managed-by”: must be set to “Helm”; annotation validation error: missing key “meta.helm.sh/release-name”: must be set to “ks-core”; annotation validation error: missing key “meta.helm.sh/release-namespace”: must be set to “kubesphere-system”

      Unable to continue with install

      helm.sh/helm/v3/pkg/action.(*Install).RunWithContext

          helm.sh/helm/v3/pkg/action/install.go:356

      main.runInstall

          helm.sh/helm/v3/cmd/helm/install.go:316

      main.newInstallCmd.func2

          helm.sh/helm/v3/cmd/helm/install.go:156

      github.com/spf13/cobra.(*Command).execute

          github.com/spf13/cobra@v1.8.1/command.go:985

      github.com/spf13/cobra.(*Command).ExecuteC

          github.com/spf13/cobra@v1.8.1/command.go:1117

      github.com/spf13/cobra.(*Command).Execute

          github.com/spf13/cobra@v1.8.1/command.go:1041

      main.main

          helm.sh/helm/v3/cmd/helm/helm.go:85

      runtime.main

          runtime/proc.go:271

      runtime.goexit

          runtime/asm_amd64.s:1695

      INSTALLATION FAILED

      main.newInstallCmd.func2

          helm.sh/helm/v3/cmd/helm/install.go:158

      github.com/spf13/cobra.(*Command).execute

          github.com/spf13/cobra@v1.8.1/command.go:985

      github.com/spf13/cobra.(*Command).ExecuteC

          github.com/spf13/cobra@v1.8.1/command.go:1117

      github.com/spf13/cobra.(*Command).Execute

          github.com/spf13/cobra@v1.8.1/command.go:1041

      main.main

          helm.sh/helm/v3/cmd/helm/helm.go:85

      runtime.main

          runtime/proc.go:271

      runtime.goexit

          runtime/asm_amd64.s:1695