민스씨의 일취일장

TIssue | Kubernetes | 마스터 init 에러 발생 해결방법 본문

Infrastructure/Kubernetes

TIssue | Kubernetes | 마스터 init 에러 발생 해결방법

읻민스 2023. 6. 7. 14:45
반응형

상황

마스터 인스턴스에서 init 명령어 실행시 에러가 발생한다.

[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR CRI]: container runtime is not running: output: time="2023-06-07T05:35:24Z" 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

해결방법

$ sudo rm /etc/containerd/config.toml
$ sudo systemctl restart containerd

위 코드 입력 후 다시 init 해준다.

init 명령

$ sudo kubeadm init

Refference

 

Kubeadm unknown service runtime.v1alpha2.RuntimeService · Issue #4581 · containerd/containerd

Problem Following Kubernetes official installation instruction for containerd and kubeadm init will fail with unknown service runtime.v1alpha2.RuntimeService. # Commands from https://kubernetes.io/...

github.com

 

728x90
반응형