创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机Centos7.9,4C/8G
Kubernetes版本信息
1.28.2
容器运行时
[root@k8s-master-1 kubesphere]# crictl version
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: v1.7.7
RuntimeApiVersion: v1
KubeSphere版本信息
例如:v3.0.0。在线安装。在已有K8s上安装
问题是什么
报错日志是什么,最好有截图。
TASK [ks-core/ks-core : KubeSphere | Creating ks-core] *************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install ks-core /kubesphere/kubesphere/ks-core/ -f /kubesphere/kubesphere/ks-core/custom-values-ks-core.yaml –namespace kubesphere-system\n”, “delta”: “0:00:04.233939”, “end”: “2023-10-21 20:06:47.899473”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2023-10-21 20:06:43.665534”, “stderr”: "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ValidatingWebhookConfiguration \“storageclass-accessor.storage.kubesphere.io\” in namespace \“\” exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \“meta.helm.sh/release-name\” must equal \“ks-core\”: current value is \“storageclass-accessor\”; annotation validation error: key \“meta.helm.sh/release-namespace\” must equal \“kubesphere-system\”: current value is \“storageclass-accessor\”", “stderr_lines”: ["Error: rendered manifests contain a resource that already exists. Unable to continue with install: ValidatingWebhookConfiguration \“storageclass-accessor.storage.kubesphere.io\” in namespace \“\” exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \“meta.helm.sh/release-name\” must equal \“ks-core\”: current value is \“storageclass-accessor\”; annotation validation error: key \“meta.helm.sh/release-namespace\” must equal \“kubesphere-system\”: current value is \“storageclass-accessor\”"], “stdout”: "Release \“ks-core\” does not exist. Installing it now.", “stdout_lines”: ["Release \“ks-core\” does not exist. Installing it now."]}
PLAY RECAP *********************************************************************
localhost : ok=20 changed=13 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0

