本文主要是介绍k8s执行crictl images报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
FATA[0000] validate service connection: CRI v1 image API is not implemented for endpoint "unix:///run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.ImageService
解决方法:
vim /etc/containerd/config.toml
找到runtime_type 写入"io.containerd.runtime.v1.linux"
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]base_runtime_spec = ""cni_conf_dir = ""cni_max_conf_num = 0container_annotations = []pod_annotations = []privileged_without_host_devices = falseruntime_engine = ""runtime_path = ""runtime_root = ""runtime_type = "io.containerd.runtime.v1.linux"
最后重启服务:
[root@master ~]# systemctl restart containerd
这篇关于k8s执行crictl images报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!