kubernetes - kubelet 说找不到节点 "master01"

标签 kubernetes kubeadm kubelet

我尝试使用 堆叠我的 kubeadm 集群三 大师。我从我的 init 命令收到这个问题...

[kubelet-check] Initial timeout of 40s passed.

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, e.g. docker.
Here is one example how you may list all Kubernetes containers running in docker:
    - 'docker ps -a | grep kube | grep -v pause'
    Once you have found the failing container, you can inspect its logs with:
    - 'docker logs CONTAINERID'
error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster

但是我不使用 no cgroupfs 而是使用 systemd
我的 kubelet 提示不知道他的节点名。
Jan 23 14:54:12 master01 kubelet[5620]: E0123 14:54:12.251885    5620 kubelet.go:2266] node "master01" not found
Jan 23 14:54:12 master01 kubelet[5620]: E0123 14:54:12.352932    5620 kubelet.go:2266] node "master01" not found
Jan 23 14:54:12 master01 kubelet[5620]: E0123 14:54:12.453895    5620 kubelet.go:2266] node "master01" not found

请让我知道问题出在哪里。

最佳答案

该问题可能是由于 docker 版本造成的,因为最新的 kubernetes 版本(即 v1.13.xx)支持 docker 版本 < 18.6。

实际上我也遇到了同样的问题,但是在将 docker 版本从 18.9 降级到 18.6 后它得到了解决。

关于kubernetes - kubelet 说找不到节点 "master01",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54330068/

相关文章:

kubernetes - K8s - 将 kubeadm 添加到现有集群

kubernetes - Istio - 无法通过 https 访问外部 IP,且 outboundTrafficPolicy.mode 设置为 REGISTRY_ONLY

kubernetes - K8s : gets HTTP 415 for PATCH request to Kubernetes REST API server

kubernetes - 启用mTLS后,使用istio ingress访问服务会显示503错误

kubernetes - kubectl-错误:您必须登录到服务器

kubernetes - 客户端应用尝试在kafka上生成主题,但卡住了,并且不返回任何错误消息,也不返回200 OK

docker - Kubernetes PVC卷装

kubernetes - 如何完全卸载kubernetes

go - 如何转储正在运行的 kubelet 的 goroutines 堆栈竞争

ssl - 很多关于 http : TLS handshake error from <ip>:<port>: remote error: tls: bad certificate 的错误