kubeadm安装kubernetes集群,报:Found multiple CRI endpoints on the host. Please define which one do you wish to use by setting the 'criSocket' field in the kubeadm configuration file

识趣 发表于: 2022-07-21   最后更新时间: 2022-07-21 10:13:28   8,656 游览

我使用kubeadm,安装kubernetes集群时,报错,执行命令如下

kubeadm init --apiserver-advertise-address=1.1.1.1 --image-repository registry.aliyuncs.com/google_containers --pod-network-cidr=192.168.0.0/16

报错:

Found multiple CRI endpoints on the host. Please define which one do you wish to use by setting the 'criSocket' field in the kubeadm configuration file: unix:///var/run/containerd/containerd.sock, unix:///var/run/cri-dockerd.sock

详情:

Found multiple CRI endpoints on the host. Please define which one do you wish to use by setting the 'criSocket' field in the kubeadm configuration file: unix:///var/run/containerd/containerd.sock, unix:///var/run/cri-dockerd.sock
To see the stack trace of this error execute with --v=5 or higher

我的版本是:

$ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:29:09Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}

请问我该怎么解决?

发表于 2022-07-21
kubeadm init --apiserver-advertise-address=1.1.1.1 --image-repository registry.aliyuncs.com/google_containers --pod-network-cidr=192.168.0.0/16 
--cri-socket=unix:///var/run/cri-dockerd.sock

或者

kubeadm init --apiserver-advertise-address=1.1.1.1 --image-repository registry.aliyuncs.com/google_containers --pod-network-cidr=192.168.0.0/16 
--cri-socket= unix:///var/run/containerd/containerd.sock
识趣 -> Lance.Wu 2年前

是的,我这台机器有docker和contaienrd,用上面的方法指定其中一个可以,也可以卸载其中一个。

你的答案

查看kubeadm相关的其他问题或提一个您自己的问题