본문 바로가기

리눅스/kubernetes

[K8s] 클러스터 설치 Kubeadm init 오류

 

kubeadm init 실행 명령어 실행시 오류 발생

 

클러스터 구성을 위해 kubeadm init 를 실행했더니 아래와 같은 오류가 발생했다.

 

root@kubernetes01:/home/fedora# kubeadm init
[init] Using Kubernetes version: v1.27.1
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR CRI]: container runtime is not running: output: time="2023-05-11T13:18:01+09:00" level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

 

해결 방법

sudo rm /etc/containerd/config.toml
sudo systemctl restart containerd
sudo kubeadm init