环境信息:
K3s 版本: v1.29.5+k3s1
节点 CPU 架构、操作系统和版本:: ubunt22.04
集群配置: 2个agents
**问题描述:因为K3S 从traefik改成Nginx需要拉取很多包,国内网络无法拉取下来,我去国外机器中拉包下来后,上传到k3s中执行这个命令,crictl image就报错了。
报错问题:FATA[0000] validate service connection: validate CRI v1 image API for endpoint “unix:///run/k3s/containerd/containerd.sock”: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing: dial unix /run/k3s/containerd/containerd.sock: connect: connection refused”
复现步骤:
- 安装 K3s 的命令:
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh |
INSTALL_K3S_MIRROR=cn
K3S_TOKEN=12345 sh -s -
–system-default-registry=registry.cn-hangzhou.aliyuncs.com
预期结果:
实际结果:
附加上下文/日志:
日志
FATA[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///run/k3s/containerd/containerd.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /run/k3s/containerd/containerd.sock: connect: connection refused"