마스터 노드 초기화 단계에서 kubeadm init 명령어 사용시 에러 발생
4004
작성한 질문수 2
마스터 노드 초기화 단계에서 kubeadm init 명령어 사용시 container runtime이 동작하지 않는다는 아래와 같은 에러코드 발생하여 문의드립니다.
[init] Using Kubernetes version: v1.26.3
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time="2023-03-29T08:31:55Z" 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
답변 2
0
안녕하세요 동일한 문제로 질문드려요.
/etc/containerd/config.toml 파일의 옵션을 구성한다는것이 이해가 잘안되네요 ㅠ
우선 toml 파일은 삭제를 했고, 삭제 전 내용은 아래와 같습니다.
# Copyright 2018-2022 Docker Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
disabled_plugins = ["cri"]
#root = "/var/lib/containerd"
#state = "/run/containerd"
#subreaper = true
#oom_score = 0
#[grpc]
# address = "/run/containerd/containerd.sock"
# uid = 0
# gid = 0
#[debug]
# address = "/run/containerd/debug.sock"
# uid = 0
# gid = 0
# level = "info"
0
안녕하세요 박지용님
설치 진행 시 사용했던 스크립트 내용 중간에 보면 tee라는 명령으로 toml 파일을 구성하는 내용이 있습니다. 해당 명령으로 toml 파일에 옵션을 추가할 수 있는데, 2번 동일한 명령을 실행하면 동일한 옵션이 두 번 들어가서 오류가 발생합니다. 그래서 파일 삭제 후 다시 생성해 달라고 요청한 것입니다.
감사합니다.
4
저처럼 구글링하다가 보실 분들을 대비해 답변 남겨놓습니다.
$ sudo vi /etc/containerd/config.toml
disabled_plugins = ["cri"]
위 내용 주석처리
$ sudo systemctl restart containerd
이후에 kubeadm init 명령 실행 시 정상적으로 동작했습니다.
0
안녕하세요 김선규님
강사 최일선입니다.
해당 오류는 containerd 설정 파일인 toml 파일이 문제일 때 발생할 수 있습니다.
cat /etc/containerd/config.toml 으로 내용을 확인해보시면 옵션이 중복되어 들어갈 수 있습니다.
그러면 오류가 발생하므로 sudo rm /etc/containerd/config.toml 으로 파일을 삭제하시고 다시 /etc/containerd/config.toml 파일의 옵션을 구성하는 것이 좋습니다.
감사합니다.
cilium install 오류
0
84
2
external-ip로 지정된 ip주소로 접속되지 않습니다.
0
72
1
Google cloud에서 클러스터를 만드는 중에 다음과 같은 오류가 발생합니다.
0
114
2
강의가 중간에 끊긴 느낌이 듭니다.
0
70
1
이론 강의 pdf 자료 다운로드 문의
0
142
2
vmware 로 가상서버 여러 대 띄울때 고정ip 로 각각 할당하는 법 알려주세요
0
1395
2
강의해주시는 별도의 강의 자료는 없나요 ??
0
207
1
스토리지 클래스
0
223
1
버전관리
0
180
1
강의 흐름 이상
0
260
1
4 쿠버네티스 워크로드에서부터 갑자기
0
256
1
영상이 나오지 않습니다.
1
223
1
kubeadm init 실패(+join할 때도 참고)
2
1517
0
2024년 3월 4일 기준 설치
3
1580
2
loadbalancer 문의 드립니다.
0
231
1
NodePord local 환경에서 안됨
0
407
2
kubectl apply 와 create 차이점
0
898
1
서비스 DNS 연습문제 중 마지막 요청 실패 질문있습니다 (feat. 서비스 생성 실패 해결방법)
0
311
1
master init error
0
555
2
gasbugs/http-go 이미지 에러
1
370
2
GKE 질문입니다
0
300
1
worker에서 join할 때 오류발생
0
564
2
포트포워딩 및 nfs 관련
0
597
1
sessionAffinity 작동관련 질문
0
507
2





