创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.8/4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.2”, GitCommit:“8b5a19147530eaac9476b0ab82980b4088bbc1b2”, GitTreeState:“clean”, BuildDate:“2021-09-15T21:38:50Z”, GoVersion:“go1.16.8”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.2”, GitCommit:“8b5a19147530eaac9476b0ab82980b4088bbc1b2”, GitTreeState:“clean”, BuildDate:“2021-09-15T21:32:41Z”, GoVersion:“go1.16.8”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client: Docker Engine - Community
Version: 26.1.4
API version: 1.41 (downgraded from 1.45)
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:32:04 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:37:17 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.33
GitCommit: d2d58213f83a351ca8f528a95fbd145f5654e957
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
WARN[0000] runtime connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock unix:///var/run/cri-dockerd.sock]. As the default settings are now deprecated, you should set the endpoint instead.
ERRO[0000] validate service connection: CRI v1 runtime API is not implemented for endpoint “unix:///var/run/dockershim.sock”: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService
ERRO[0000] validate service connection: CRI v1 runtime API is not implemented for endpoint “unix:///run/containerd/containerd.sock”: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService
E1012 11:32:48.497105 31705 remote_runtime.go:145] “Version from runtime service failed” err="rpc error: code = Unavailable desc = connection error: desc = \“transport: Error while dialing dial unix /run/crio/crio.sock: connect: no such file or directory\”"
FATA[0000] getting the runtime version: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial unix /run/crio/crio.sock: connect: no such file or directory”
KubeSphere版本信息
v3.4.1/离线安装/在已有K8s上安装。
问题是什么
报错日志是什么,最好有截图。
流水线运行失败,经跟踪是devops容器无法拉取镜像
devops容器无法拉取镜像Back-off pulling image “kubesphere/devops-tools:ks-v3.4.1”
目前已手工在其他机器拉取镜像打包传到当前集群宿主机上
但运行流水线,仍然没有优先使用宿主机上镜像,看了下容器yaml里拉取的策略设置的是imagePullPolicy: Always
所以想咨询下在哪里可以修改拉取策略,让其优先使用宿主机镜像?或者有其他的解决方法?