创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,麒麟V10 arm64,4C/16G 3master 8node
Kubernetes版本信息
将 kubectl version 命令执行结果贴在下方
Client Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.8”, GitCommit:“9f2892aab98fe339f3bd70e3c470144299398ace”, GitTreeState:“clean”, BuildDate:“2020-08-13T16:12:48Z”, GoVersion:“go1.13.15”, Compiler:“gc”, Platform:“linux/arm64”}
Server Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.8”, GitCommit:“9f2892aab98fe339f3bd70e3c470144299398ace”, GitTreeState:“clean”, BuildDate:“2020-08-13T16:04:18Z”, GoVersion:“go1.13.15”, Compiler:“gc”, Platform:“linux/arm64”}
容器运行时
将 docker version / crictl version / nerdctl version 结果贴在下方
Client: Docker Engine - Community
Version: 19.03.12
API version: 1.40
Go version: go1.13.10
Git commit: 48a6621
Built: Mon Jun 22 15:43:21 2020
OS/Arch: linux/arm64
Experimental: false
KubeSphere版本信息
v3.0.0。sealos安装的k8s,基于k8s安装的kubesphere
问题是什么
安装上kubesphere V3.0.0后,kubesphere-system下容器状态均正常,访问界面登录报错:账号或密码错误

直接带上用户密码请求apiserver响应正常
curl -u admin:P@88w0rd "http://`kubectl -n kubesphere-system get svc ks-apiserver -o jsonpath='{.spec.clusterIP}'`/api/v1/nodes"
"metadata": {
"name": "hw-k8s-node5",
"selfLink": "/api/v1/nodes/hw-k8s-node5",
"uid": "27dfd686-f3f9-41df-b4c2-0af72a731c27",
"resourceVersion": "59562",
"creationTimestamp": "2022-05-19T07:51:26Z",
"labels": {
"beta.kubernetes.io/arch": "arm64",
"beta.kubernetes.io/os": "linux",
"kubernetes.io/arch": "arm64",
"kubernetes.io/hostname": "hw-k8s-node5",
"kubernetes.io/os": "linux"
}, ...省略大段信息
E0519 18:02:52.067893 1 handler.go:275] incorrect password
I0519 18:02:52.074705 1 apiserver.go:539] 10.38.198.19 - "POST /oauth/token HTTP/1.1" 401 32 94ms
I0519 18:07:38.796503 1 user_controller.go:221] Successfully synced key:admin
I0519 18:07:38.796569 1 event.go:281] Event(v1.ObjectReference{Kind:"User", Namespace:"", Name:"admin", UID:"f20cace3-4fa4-4b05-9354-84ef437c3b89", APIVersion:"iam.kubesphere.io/v1alpha2", ResourceVersion:"54194", FieldPath:""}): type: 'Normal' reason: 'Synced' User synced successfully
E0519 18:07:38.798585 1 user_controller.go:146] Failed to enqueue login object, error: Operation cannot be fulfilled on users.iam.kubesphere.io "admin": the object has been modified; please apply your changes to the latest version and try again
E0519 18:07:38.799857 1 user_controller.go:146] Failed to enqueue login object, error: Operation cannot be fulfilled on users.iam.kubesphere.io "admin": the object has been modified; please apply your changes to the latest version and try again