• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

kubeadm init error

23.01.17 19:23 작성 조회수 980

0

안녕하세요. 다음과 같은 문제가 있어 문의드립니다.

다음과 같은 에러가 발생하고 정상적으로 진행하지 못하고 있습니다.

docker는 정상적으로 설치되어 있고, cgoups 드라이버는 systemd로 설정되어 있습니다.

답변부탁드립니다.

********************************************************************************************

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

Unfortunately, an error has occurred:

timed out waiting for the condition

This error is likely caused by:

- The kubelet is not running

- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:

- 'systemctl status kubelet'

- 'journalctl -xeu kubelet'

Additionally, a control plane component may have crashed or exited when started by the container runtime.

To troubleshoot, list all containers using your preferred container runtimes CLI.

Here is one example how you may list all running Kubernetes containers by using crictl:

- 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock ps -a | grep kube | grep -v pause'

Once you have found the failing container, you can inspect its logs with:

- 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock logs CONTAINERID'

error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster

To see the stack trace of this error execute with --v=5 or higher

 

답변 3

·

답변을 작성해보세요.

0

쏭지님의 프로필

쏭지

2023.01.22

안녕하세요 . 이건 kubelet 이 정상적으로 작동하지 않아서 벌어지는 에러인데요.

  1. kubelet 삭제 후 재설치 하시고 러닝됐는지 확인

  2. 도커랑 컨테이너 리스타트 후 다시 init

두개 해보시면 될거예요!

 

 

0

dlwngud74님의 프로필

dlwngud74

2023.01.18

업로드 영상 기다리겠습니다.
감사합니다.

gasbugs님의 프로필

gasbugs

2023.01.22

1.26.1 기준으로 설치하는 방법 업로드 드렸습니다 감사합니다~

0

gasbugs님의 프로필

gasbugs

2023.01.17

안녕하세요 강사 최일선입니다.

말씀하신 오류는 containerd와 kubelet의 호환성 문제로 실행되지 않는 것입니다.

이 문제는 얼마 전에 업데이트된 현재 최신 버전인 1.26에서 나타나고 있습니다.

이 부분을 해결하기 위해서는 docker.io를 설치하는 것이 아니라 containerd를 설치하셔야 합니다. docker.io를 설치하면 containerd가 호환되지 않는 것으로 보입니다. (또는 쿠버네티스를 1.25버전을 설치하는 것도 방법이 되겠습니다)

현재 교체 영상을 촬영 중이며 이번 주 중에 업로드될 수 있도록 하겠습니다.

우선 영상을 기다리시면서 설치를 진행하지 않고, GKE로 구성한 클러스터로 수업을 진행하셔도 실습을 진행하실 수 있습니다.

감사합니다!