我正在尝试设置一个 kubernetes 集群并在我的工作节点上运行此命令
kubeadm join server:port --token xxx --discovery-token-ca-cert-hash sha256:xxxx
,我遇到的错误是
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
我不确定这里要使用哪个容器运行时,因此我修改了命令,
kubeadm join server:port --token xxx --discovery-token-ca-cert-hash sha256:xxxx --cri-socket /var/run/crio/crio.sock
但错误是
[ERROR CRI]: container runtime is not running: output: I0617 21:55:27.908044 1877581 util_unix.go:103] "Using this endpoint is deprecated, please consider using full URL format" endpoint="/var/run/crio/crio.sock" URL="unix:///var/run/crio/crio.sock"
E0617 21:55:27.908867 1877581 remote_runtime.go:616] "Status from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/crio/crio.sock: connect: no such file or directory\""
time="2023-06-17T21:55:27+05:30" level=fatal msg="getting status of runtime: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/crio/crio.sock: connect: no such file or directory\""
, error: exit status 1
有人可以在这里建议正确的方法吗