【发布时间】:2020-09-24 17:44:26
【问题描述】:
Kubeadm 初始化问题。
配置数据版本:
os -rhel7.5
env -onprem server
docker - 19
kube - 18
控制台输出:
[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
[kubelet-check] Initial timeout of 40s passed.
[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 [::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 [::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 [::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 [::1]:10248: connect: connection refused.
出了什么问题以及如何解决?
【问题讨论】:
-
嗨,欢迎来到 StackOverflow!请格式化您的问题,以便可以正确理解。格式正确且解释清楚的问题会比格式错误的问题更快地得到答案。
-
你能检查一下kubelet是否按照错误指示运行吗?您可以使用
systemctl status kubelet命令来做到这一点。 -
不,kubelet 没有运行
-
请尝试再次运行
init,然后检查kubelet错误:sudo journalctl -xeu kubelet并用它更新问题。您是否禁用了SELinux?
标签: kubernetes kubectl