操作系统信息
物理机,Centos8 Stream 32G
Kubernetes版本信息
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:20:07Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:13:28Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}
KubeSphere版本信息
v3.4.1 最小化安装 KubeSphere
ks-installer 报错
fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, "cmd": "/usr/local/bin/kubectl patch cc ks-installer --type merge -p '{\"status\": {\"core\": {\"status\": \"enabled\", \"enabledTime\": \"2023-12-16T16:17:07CST\"}}}' -n kubesphere-system\n", "delta": "0:00:00.024755", "end": "2023-12-16 16:17:23.133884", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2023-12-16 16:17:23.109129", "stderr": "Error from server (Forbidden): configconstraints.apps.kubeblocks.io \"ks-installer\" is forbidden: User \"system:serviceaccount:kubesphere-system:ks-installer\" cannot get resource \"configconstraints\" in API group \"apps.kubeblocks.io\" at the cluster scope", "stderr_lines": ["Error from server (Forbidden): configconstraints.apps.kubeblocks.io \"ks-installer\" is forbidden: User \"system:serviceaccount:kubesphere-system:ks-installer\" cannot get resource \"configconstraints\" in API group \"apps.kubeblocks.io\" at the cluster scope"], "stdout": "", "stdout_lines": []}
ks-apiserver 初始化报错
MountVolume.SetUp failed for volume "kubesphere-config" : configmap "kubesphere-config" not found
使用的是 GitHub下载的yaml文件
https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/kubesphere-installer.yaml
https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/cluster-configuration.yaml