Troubleshooting

[Troubleshooting] Kubernetes 'kubeadm init' Error.

hongcoder 2024. 10. 5. 18:27

쿠버네티스를 설치하고 클러스터를 구성하기 위해 kubeadm init 커멘드를 사용했는데 다음과 같은 에러 메세지가 나왔다.

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/crio/crio.sock
To see the stack trace of this error execute with --v=5 or higher

 

해당 오류는 cri socket이 두개이상 감지 되었을 때 나타나는 에러 메세지이다.

이럴땐 socket을 지정해주면 해결된다.

 

필자는 crio를 사용할 예정이기 때문에 다음과 같은 커맨드로 해결했다.

kubeadm init --cri-socket /var/run/crio/crio.sock