KubeSphere 镜像构建器(S2I)服务证书过期问题
操作系统信息
例如:物理机,Centos7.9/4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.17”, GitCommit:“953be8927218ec8067e1af2641e540238ffd7576”, GitTreeState:“clean”, BuildDate:“2023-02-22T13:34:27Z”, GoVersion:“go1.19.6”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.17”, GitCommit:“953be8927218ec8067e1af2641e540238ffd7576”, GitTreeState:“clean”, BuildDate:“2023-02-22T13:27:46Z”, GoVersion:“go1.19.6”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client: Docker Engine - Community
Version: 26.0.0
API version: 1.45
Go version: go1.21.8
Git commit: 2ae903e
Built: Wed Mar 20 15:21:09 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:20:06 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.6.4
GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
runc:
Version: 1.1.1
GitCommit: v1.1.0-20-g52de29d7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
例如:v3.4.1,在线安装,使用kk安装。
问题是什么
s2i构建镜像时报错,如何解决
Internal error occurred: failed calling webhook “s2ibuilder.kb.io”: failed to call webhook: Post “https://webhook-server-service.kubesphere-devops-system.svc:443/mutate-devops-kubesphere-io-v1alpha1-s2ibuilder?timeout=10s”: x509: certificate has expired or is not yet valid: current time 2024-04-12T10:58:32Z is after 2024-02-14T06:08:48Z