validate service connection: CRI v1 image API is not implemented for endpoint \“unix:///var/run/cont
K8s安装报错CRI v1 image API is not implemented for endpoint
·
validate service connection: CRI v1 image API is not implemented for endpoint "unix:///var/run/containerd/containerd.sock\
执行kubeadm config images pull --config kubeadm.yaml时报以上错误,检查 /etc/containerd/config.toml 配置,发现如下:
disabled_plugins = ["cri"]
#root = "/var/lib/containerd"
#state = "/run/containerd"
#subreaper = true
#oom_score = 0
#[grpc]
# address = "/run/containerd/containerd.sock"
# uid = 0
# gid = 0
#[debug]
# address = "/run/containerd/debug.sock"
# uid = 0
# gid = 0
# level = "info"
解决办法:注释掉唯一生效的配置“disabled_plguins=[“cri”]”即可,字面意思即知,这个配置是禁用CRI插件,与报错冲突,然后重启contained服务即可,如下:
sed -i -r '/cri/s/(.*)/#\1/' /etc/containerd/config.toml
systemctl restart containerd
更多推荐
已为社区贡献3条内容
所有评论(0)