카테고리 없음

K8S [ERROR CRI]: container runtime is not running:

dodomp0114 2022. 11. 2. 10:23

kubeadm init 입력 시, 아래와 같은 오류 발생하며 클러스터 초기화가 진행이 안됨.

root@master:~# kubeadm init
W1102 09:54:24.808869    2151 version.go:104] could not fetch a Kubernetes version from the internet: unable to get URL "https://dl.k8s.io/release/stable-1.txt": Get "https://dl.k8s.io/release/stable-1.txt": dial tcp: lookup dl.k8s.io on 127.0.0.53:53: server misbehaving
W1102 09:54:24.808994    2151 version.go:105] falling back to the local client version: v1.25.3
[init] Using Kubernetes version: v1.25.3
[preflight] Running pre-flight checks error execution phase preflight: 
[preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: E1102 09:54:25.044176    2167 remote_runtime.go:948] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
time="2022-11-02T09:54:25+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

 

 

 

해결 방법

## config.toml 파일에서
## disabled_plugins = ["CRI"]를
## disabled_plugins = [""] 로 변경
## CRI 구문 삭제.
vi /etc/containerd/config.toml
systemctl restart containerd