创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
安装命令:
helm upgrade –install -n test-kubesphere –create-namespace ks-core https://charts.kubesphere.io/main/ks-core-1.1.1.tgz –debug –wait \
--set global.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks \
--set extension.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks
我将默认的 namespace kubesphere-system 改为了:test-kubesphere 执行了以上命令,结果说命名空间不对,然后我将 namespace 改回 kubesphere-system 重新执行以上命令,还是错误….
错误信息如下:
Error: Unable to continue with install: ClusterRole “cluster-admin” in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key “meta.helm.sh/release-namespace” must equal “kubesphere-system”: current value is “gqr-kubesphere”
helm.go:86: 2024-12-14 13:34:40.55887146 +0800 CST m=+6.574597673 [debug] ClusterRole “cluster-admin” in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key “meta.helm.sh/release-namespace” must equal “kubesphere-system”: current value is “test-kubesphere”
我要怎么弄呢?