创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
Centos7.9,8C/16G 3台,K8S集群
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“24”, GitVersion:“v1.24.3”, GitCommit:“aef86a93758dc3cb2c658dd9657ab4ad4afc21cb”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:30:46Z”, GoVersion:“go1.18.3”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:“1”, Minor:“24”, GitVersion:“v1.24.3”, GitCommit:“aef86a93758dc3cb2c658dd9657ab4ad4afc21cb”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:23:26Z”, GoVersion:“go1.18.3”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
crictl version
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.6.9
RuntimeApiVersion: v1
KubeSphere版本信息
V3.3.2 在线安装。K8S使用kk安装
ks-apiserver日志
E0606 10:25:03.844939 1 im.go:160] Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
E0606 10:25:03.845012 1 utils.go:76] /workspace/pkg/kapis/iam/v1alpha2/handler.go:528 Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I0606 10:25:03.845130 1 apiserver.go:641] 10.233.107.13 - “POST /kapis/iam.kubesphere.io/v1alpha2/users HTTP/1.1” 500 292 30016ms
E0606 10:32:07.437499 1 im.go:146] user.iam.kubesphere.io “abacst” not found
E0606 10:32:07.437581 1 utils.go:76] /workspace/pkg/kapis/iam/v1alpha2/handler.go:81 user.iam.kubesphere.io “abacst” not found
I0606 10:32:07.437641 1 apiserver.go:641] undefined - “GET /kapis/iam.kubesphere.io/v1alpha2/users/abacst HTTP/1.1” 500 42 0ms
E0606 10:32:15.157067 1 im.go:146] user.iam.kubesphere.io “abacst” not found
E0606 10:32:15.157109 1 utils.go:76] /workspace/pkg/kapis/iam/v1alpha2/handler.go:81 user.iam.kubesphere.io “abacst” not found
I0606 10:32:15.157148 1 apiserver.go:641] undefined - “GET /kapis/iam.kubesphere.io/v1alpha2/users/abacst HTTP/1.1” 500 42 0ms
E0606 10:32:45.207690 1 im.go:160] Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: context deadline exceeded
E0606 10:32:45.207755 1 utils.go:76] /workspace/pkg/kapis/iam/v1alpha2/handler.go:528 Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: context deadline exceeded
I0606 10:32:45.207828 1 apiserver.go:641] 10.233.107.13 - “POST /kapis/iam.kubesphere.io/v1alpha2/users HTTP/1.1” 500 243 30021ms
ks-controller-manager无报错日志
kubsphere控制台报错日志:
Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
通过curl请求提示一下信息
curl https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s