[K8s] 클러스터 구성중 Kubeadm init 과정 에러

최지영·2022년 5월 21일
1

K8S

목록 보기
1/2

✌ k8s 구성중 kubeadm init 안되는 증상

✨ K8S 클러스터 구성중에 kubeadm init을 입력하는 과정에서 에러가 발생!

kubeadm init 실행 명령어

kubeadm init  --config=config.yaml

다음 아래와 같은 에러가 발생한다!

W1125 12:58:32.733485   26426 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.19.4
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR CRI]: container runtime is not running: output: time="2020-11-25T12:58:32Z" level=fatal msg="getting status of runtime failed: 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

해결 방법

다음 아래 명령어를 순차적으로 입력

user@k8s-master:~/$ sudo rm /etc/containerd/config.toml
user@k8s-master:~/$ sudo systemctl restart containerd
user@k8s-master:~/$ sudo kubeadm init

2개의 댓글

comment-user-thumbnail
2023년 8월 9일

고마워요~

답글 달기
comment-user-thumbnail
2023년 12월 31일

감사합니다. 덕분에 해결했습니다.

답글 달기