• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

vagrant 설정 오류

22.03.27 17:16 작성 조회수 218

0

[질문 전 답변]
1. 강의 내용과 관련된 질문인가요? [예 | 아니요]
2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예 | 아니요]
3. 질문 잘하기 법을 읽어보셨나요? [예 | 아니요]
(https://www.inflearn.com/blogs/1719)
4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

[질문 하기]
강사님께서 공유해주신 git에서 다운 받은 파일로
vagrant를 설정하는 도중에 다음과 같은 오류가 발생 했습니다.
 
내용 문의 드립니다.
 
m-k8s-1.20: [kubelet-check] Initial timeout of 40s passed. m-k8s-1.20: m-k8s-1.20: Unfortunately, an error has occurred: m-k8s-1.20: timed out waiting for the condition m-k8s-1.20: m-k8s-1.20: This error is likely caused by: m-k8s-1.20: - The kubelet is not running m-k8s-1.20: - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled) m-k8s-1.20: m-k8s-1.20: If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands: m-k8s-1.20: - 'systemctl status kubelet' m-k8s-1.20: - 'journalctl -xeu kubelet' m-k8s-1.20: m-k8s-1.20: Additionally, a control plane component may have crashed or exited when started by the container runtime. m-k8s-1.20: To troubleshoot, list all containers using your preferred container runtimes CLI. m-k8s-1.20: m-k8s-1.20: Here is one example how you may list all Kubernetes containers running in docker: m-k8s-1.20: - 'docker ps -a | grep kube | grep -v pause' m-k8s-1.20: Once you have found the failing container, you can inspect its logs with: m-k8s-1.20: - 'docker logs CONTAINERID' m-k8s-1.20: m-k8s-1.20: error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster m-k8s-1.20: To see the stack trace of this error execute with --v=5 or higher

 

OS : windows 10

virtualbox : 6.1 

vagrant : last release

 

답변 1

답변을 작성해보세요.

0

supportkim님의 프로필

supportkim

2022.03.29

안녕하세요, 강재호님.

튜터 supportkim입니다.

 

남겨주신 로그 확인 결과, 가상머신(m-k8s-1.20) 배포 이후 kubernetes 설치 및 초기화가 이루어지는 시점에 오류가 발생한 것으로 보입니다.

이러한 vagrant를 통한 배포 시점의 오류는 스크립트를 통해 자동으로 진행되며

수강생분들의 환경(네트워크 상태나 다른 프로그램의 영향 등)에 따라 여러가지 이유로 오류가 발생할 수 있으므로

안타깝게도 하나하나 트러블슈팅하기에 어려운 부분이 있어 큰 도움을 드리지 못하는 점 양해 부탁드립니다.

 

따라서 vagrant를 통해 배포하실 때와 마찬가지로, 아래 명령어를 이용해 가상머신을 제거 후

다시 배포를 시도해보시고, 증상이 동일하신지 확인을 부탁 드립니다.

 

> vagrant destroy

(https://www.vagrantup.com/docs/cli/destroy)

 

혹시 추가로 궁금하신 점이 있으면 남겨주세요

 

감사합니다 :)