구글 클라우드 플랫폼에서 설치 시 오류가 있어서 문의 드립니다.

21.08.20 17:06 작성 조회수 121

0

안녕하세요 열심히 수강하고 있는 수강생입니다.

Local 환경에서 설치 하고 테스트 하다보니 회사 내 보안적인 이슈 때문에 테스트가 쉽지 않아 구글 클라우드 플랫폼 환경에서 VM을 이용하여 마스터 서버와 work 노드를 구성하려고 합니다.

알려주신 절차대로 수행 중에 kubeadm init를 수행하면 아래와 같은 오류가 발생합니다.

여러번 반복해 보았는데도 오류가 계속 발생되는데 도움이 될 만한 사항이 있으면 알려주세요..

ps) 내부적인 보안 때문에 네트워크 문제가 아닌가 의심은 가는데 어떻게 조치를 해야 되는지 알 수가 없네요.

감사합니다.

========================================================================

<x-select-bag style="color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222;display:block;overflow:hidden;height:var(--hterm-charsize-height)">Hit:2 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:4 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Fetched 88.7 kB in 1s (72.9 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done</x-select-bag><x-fold id="hterm:top-fold-for-row-selection" style="color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222;display:block;margin-bottom:0px"></x-fold><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">curl is already the newest version (7.58.0-2ubuntu3.14).</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">apt-transport-https is already the newest version (1.6.14).</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">The following package was automatically installed and is no longer required:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> libnuma1</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Use 'sudo apt autoremove' to remove it.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">OK</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">deb https://apt.kubernetes.io/ kubernetes-xenial main</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Hit:1 <a href="http://asia-northeast3.gce.archive.ubuntu.com/ubuntu" target="_blank" rel="noopener noreferrer">http://asia-northeast3.gce.archive.ubuntu.com/ubuntu</a> bionic InRelease</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Hit:2 <a href="http://asia-northeast3.gce.archive.ubuntu.com/ubuntu" target="_blank" rel="noopener noreferrer">http://asia-northeast3.gce.archive.ubuntu.com/ubuntu</a> bionic-updates InRelease </x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Hit:3 <a href="http://asia-northeast3.gce.archive.ubuntu.com/ubuntu" target="_blank" rel="noopener noreferrer">http://asia-northeast3.gce.archive.ubuntu.com/ubuntu</a> bionic-backports InRelease </x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Hit:4 https://packages.cloud.google.com/apt kubernetes-xenial InRelease </x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] Initial timeout of 40s passed.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] It seems like the kubelet isn't running or healthy.</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] The HTTP call equal to 'curl -sSL <a href="https://ssh.cloud.google.com/devshell/proxy?authuser=1&amp;devshellProxyPath=%2Fhealthz%27&amp;port=10248&amp;environment_name&amp;environment_id" target="_blank" rel="noopener noreferrer">http://localhost:10248/healthz'</a> failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: conn</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">ect: connection refused.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] It seems like the kubelet isn't running or healthy.</x-row>

<x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[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: conn</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">ect: connection refused.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] It seems like the kubelet isn't running or healthy.</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[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: conn</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">ect: connection refused.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] It seems like the kubelet isn't running or healthy.</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[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: conn</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">ect: connection refused.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[kubelet-check] It seems like the kubelet isn't running or healthy.</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">[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: conn</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">ect: connection refused.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Unfortunately, an error has occurred:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> timed out waiting for the condition</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> This error is likely caused by:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - The kubelet is not running</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - 'systemctl status kubelet'</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - 'journalctl -xeu kubelet'</x-row>

<x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Additionally, a control plane component may have crashed or exited when started by the container runtime.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> To troubleshoot, list all containers using your preferred container runtimes CLI.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Here is one example how you may list all Kubernetes containers running in docker:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - 'docker ps -a | grep kube | grep -v pause'</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Once you have found the failing container, you can inspect its logs with:</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> - 'docker logs CONTAINERID'</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">To see the stack trace of this error execute with --v=5 or higher</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:20px;font-variant-ligatures:none;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">root@kube-master-1:~# </x-row>

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!