创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
Centos7.5 4C/8G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“21”, GitVersion:“v1.21.14”, GitCommit:“0f77da5bd4809927e15d1658fb4aa8f13ad890a5”, GitTreeState:“clean”, BuildDate:“2022-06-15T14:17:29Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“21”, GitVersion:“v1.21.14”, GitCommit:“0f77da5bd4809927e15d1658fb4aa8f13ad890a5”, GitTreeState:“clean”, BuildDate:“2022-06-15T14:11:36Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Client: Docker Engine - Community
Version: 24.0.5
API version: 1.41 (downgraded from 1.43)
Go version: go1.20.6
Git commit: ced0996
Built: Fri Jul 21 20:39:02 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:34:26 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
3.2.0
问题是什么
在镜像构建器创建构建器时提示错误:Internal error occurred: failed calling webhook “s2ibuilder.kb.io”: Post “https://webhook-server-service.kubesphere-devops-system.svc:443/mutate-devops-kubesphere-io-v1alpha1-s2ibuilder?timeout=10s”: context deadline exceeded
查看ks-console日志:
resources_filter=ks-console-5c9fcbc67b-rnsv6%24&metrics_filter=pod_cpu_usage%7Cpod_memory_usage_wo_cache%24 2023/08/11T16:27:29.840
<– GET / 2023/08/11T16:27:33.543
UnauthorizedError: Not Login
at Object.throw (/opt/kubesphere/console/server/server.js:22982:11)
at getCurrentUser (/opt/kubesphere/console/server/server.js:6970:14)
at renderView (/opt/kubesphere/console/server/server.js:71964:7)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /opt/kubesphere/console/server/server.js:40129:7
at async logger (/opt/kubesphere/console/server/server.js:37073:7)
at async /opt/kubesphere/console/server/server.js:31836:26
at async /opt/kubesphere/console/server/server.js:31836:26
at async /opt/kubesphere/console/server/server.js:31836:26
--> GET / 302 5ms 43b 2023/08/11T16:27:33.548
<– GET /login 2023/08/11T16:27:33.574
--> GET /login 200 3ms 17.73kb 2023/08/11T16:27:33.577
<– GET /kapis/monitoring.kubesphere.io/v1alpha3/namespaces/kubesphere-system/pods?cluster=default&labelSelector=app%3Dks-console%2Ctier%3Dfrontend&resources_filter=ks-console-5c9fcbc67b-rnsv6%24&metrics_filter=pod_cpu_usage%7Cpod_memory_usage_wo_cache%24 2023/08/11T16:27:33.812
<– POST /login 2023/08/11T16:27:37.166
--> POST /login 302 75ms 33b 2023/08/11T16:27:37.241
<– GET / 2023/08/11T16:27:37.266
{
code: 403,
kind: ‘Status’,
apiVersion: ‘v1’,
metadata: {},
status: ‘Failure’,
message: ‘configmaps “kubesphere-config” is forbidden: User “ts-regular” cannot get resource “configmaps” in API group "" in the namespace “kubesphere-system”’,
reason: ‘Forbidden’,
details: { name: ‘kubesphere-config’, kind: ‘configmaps’ },
statusText: ‘Forbidden’
}
--> GET / 200 25ms 18.47kb 2023/08/11T16:27:37.291
<– GET / 2023/08/11T16:27:37.320
{
code: 403,
kind: ‘Status’,
apiVersion: ‘v1’,
metadata: {},
status: ‘Failure’,
message: ‘configmaps “kubesphere-config” is forbidden: User “ts-regular” cannot get resource “configmaps” in API group "" in the namespace “kubesphere-system”’,
reason: ‘Forbidden’,
details: { name: ‘kubesphere-config’, kind: ‘configmaps’ },
statusText: ‘Forbidden’
}
--> GET / 200 24ms 18.47kb 2023/08/11T16:27:37.344
<– GET /kapis/tenant.kubesphere.io/v1alpha3/workspacetemplates/tsintell 2023/08/11T16:27:37.520
<– GET /kapis/iam.kubesphere.io/v1alpha2/workspaces/tsintell/workspacemembers/ts-regular/workspaceroles 2023/08/11T16:27:37.522
<– GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces/tsintell/namespaces?labelSelector=kubefed.io%2Fmanaged%21%3Dtrue%2C%20kubesphere.io%2Fkubefed-host-namespace%21%3Dtrue&sortBy=createTime&limit=10 2023/08/11T16:27:37.602
请问这个问题是我哪里的配置有问题吗?