创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
物理机,Ubuntu20.04,4C/8G

Kubernetes版本信息
kubectl version 命令执行结果贴在下方

root@iotree-desktop:~# kubectl version

Client Version: v1.31.0

Kustomize Version: v5.4.2

Server Version: v1.31.0

容器运行时
docker version / crictl version / nerdctl version 结果贴在下方

root@iotree-desktop:~# nerdctl version

WARN[0000] unable to determine buildctl version: exec: “buildctl”: executable file not found in $PATH

Client:

Version: v1.7.7

OS/Arch: linux/amd64

Git commit: 5882c720f4e7f358fb26b759e514b3ae9dd8ea83

buildctl:

Version:

Server:

containerd:

Version: v1.7.13

GitCommit: 7c3aca7a610df76212171d200ca3811ff6096eb8

runc:

Version: 1.1.12

GitCommit: v1.1.12-0-g51d5e946

KubeSphere版本信息
例如:v4.1.2。在线安装。在已有K8s上安装。

问题是什么
install.go:168: [debug] CRD workspacetemplates.tenant.kubesphere.io is already present. Skipping.

Error: Unable to continue with install: GlobalRole “anonymous” 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:84: [debug] GlobalRole “anonymous” 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:340

main.runInstall

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

main.newUpgradeCmd.func2

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

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

    github.com/spf13/cobra@v1.8.0/command.go:983

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

    github.com/spf13/cobra@v1.8.0/command.go:1115

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

    github.com/spf13/cobra@v1.8.0/command.go:1039

main.main

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

runtime.main

    runtime/proc.go:267

runtime.goexit

    runtime/asm_amd64.s:1650