Cloud/kubernetes

[kubernetes] 클러스터 설치 중 kubeadm init 에러 해결

근육곰돌이 2022. 7. 14. 18:32
728x90

k8s 설치 중 kubeadm init이 되지않는 경우가 발생하였습니다.

아래와 같이 kubeadm init명령 후 에러가 발생하였습니다.

 

문제

: Status from runtime service failed 런타임 서비스 Fail이 발생 (왠지 도커의 문제가 발생된듯 보인다)

/etc/docker# kubeadm init
[init] Using Kubernetes version: v1.24.3
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR CRI]: container runtime is not running: output: E0714 16:19:47.735413    6012 remote_runtime.go:925] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
time="2022-07-14T16:19:47+09:00" level=fatal msg="getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.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

 

원인 & 토론

  • Ubuntu 20.04 (focal)
  • containerd.io 1.3.7 이상 시 문제가 발생하는것으로 보임

containerd 데몬에서 cri옵션이 버그를 야기 시키는것으로 보임 (github 토론)

https://github.com/containerd/containerd/issues/4581

 

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

 

 

해결방법

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

 

 

반응형