kubeadm join 192.168.124.13:6443 --token l9u5pi.1gayyedhjsa8uchn
--discovery-token-ca-cert-hash sha256:729d85453ae80664618f5278030833ad858e7608956276b8
执行命令报错: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
这个错误表明在您的环境中存在多个容器运行时接口(Container Runtime Interface,CRI)端点,Kubernetes 不确定应该使用哪一个。要解决这个问题,您需要在 kubeadm 配置文件中明确指定要使用的 CRI 端点。
解决方法:
添加--cri-socket unix:///var/run/cri-dockerd.sock
kubeadm join 192.168.124.13:6443 --token l9u5pi.1gayyedhjsa8uchn
--discovery-token-ca-cert-hash sha256:729d85453ae80664618f5278030833ad858e7608956276b8
--cri-socket unix:///var/run/cri-dockerd.sock