kubernetes - kubelet 说找不到节点“master01”
问题描述
我尝试将我的kubeadm集群与三个master 堆叠起来。我从我的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
但是我没有使用 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
请让我知道问题出在哪里。
解决方案
推荐阅读
- maven - PITEST 突变覆盖率:未发现突变
- java - Spring Data JPA UNION 原生查询
- node.js - 在 Docker 构建中找不到玩笑
- playframework - 播放框架光滑的动作使服务器崩溃
- c# - Checkmarx C# - Improper_Resource_Shutdown_or_Release
- angular - 在 ngx-leaflet 中使用材质组件作为自定义控件
- mongodb - 如何在 MongoDB 中的 Case Condition 成功查询执行中使用 SQL kind join?
- javascript - append() is not working properly in jquery?
- ios - 未设置环境变量:ARCHS
- firebase - 一个应用程序的 Firebase 多个位置数据库项目