Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s1.29X 启动kubelet后查看集群的时候报错 #39

Open
LingXing2022 opened this issue Apr 5, 2024 · 3 comments
Open

k8s1.29X 启动kubelet后查看集群的时候报错 #39

LingXing2022 opened this issue Apr 5, 2024 · 3 comments

Comments

@LingXing2022
Copy link

k8s1.29部署的时候到了启动kubelet查看集群的时候报错,kubelet日志报错如下
Apr 5 13:56:24 k8s-master01 kubelet[12475]: E0405 13:56:24.591995 12475 eviction_manager.go:282] "Eviction manager: failed to get summary stats" err="failed to get node info: node "k8s-master01" not found"
Apr 5 13:56:24 k8s-master01 kubelet[12475]: E0405 13:56:24.842932 12475 controller.go:145] "Failed to ensure lease exists, will retry" err="leases.coordination.k8s.io "k8s-master01" is forbidden: User "system:anonymous" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "kube-node-lease"" interval="7s"
Apr 5 13:56:25 k8s-master01 kubelet[12475]: I0405 13:56:25.022053 12475 kubelet_node_status.go:73] "Attempting to register node" node="k8s-master01"

请大佬帮忙指导下
image

@lizebin-dream
Copy link

我遇到和你一样的问题

1 similar comment
@lizebin-dream
Copy link

我遇到和你一样的问题

@cby-chen
Copy link
Owner

一、写在前面
打开文档,使用全文替换,全局替换主机IP即可。不懂就不要乱动别的参数,瞎改的出了问题,不要怪我文档的问题。

觉得文档不好,您可以自己写,您可以选择不看,此仓库用爱发电。

二、介绍
我使用IPV6的目的是在公网进行访问,所以我配置了IPV6静态地址。 若您没有IPV6环境,或者不想使用IPv6,不对主机进行配置IPv6地址即可。 不配置IPV6,不影响后续,不过集群依旧是支持IPv6的。为后期留有扩展可能性。 若不要IPv6 ,不给网卡配置IPv6即可,不要对IPv6相关配置删除或操作,否则会出问题。 如果本地没有IPv6,那么Calico需要使用IPv4的yaml配置文件。 后续尽可能第一时间更新新版本文档,更新后内容在GitHub。

不要删除 IPv6 相关配置!!!
不要删除 IPv6 相关配置!!!
不要删除 IPv6 相关配置!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants