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