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

Flannel out of subnets #650

Open
zengshaoyong opened this issue Mar 22, 2023 · 1 comment
Open

Flannel out of subnets #650

zengshaoyong opened this issue Mar 22, 2023 · 1 comment

Comments

@zengshaoyong
Copy link

文档版本
K8S 版本:v1.12。

现象描述
你好,遇到一个flannel的报错问题,希望大神帮忙解答,谢谢

我按照教程设置Network:172.30.0.0/16,SubnetLen:21,目前集群有31个节点,当新增第32个节点时,flannel服务报错:Error registering network:failed to acquire lease:out of subnets

@zengshaoyong
Copy link
Author

我在这里找到了答案,但是我在生产环境,请问有没有一种平滑过渡的方案呢

kubeleti里面设置的maxPods的值是: 220,每台机器最多只能跑220个容器,一个c段ip就足够了

SubnetLen值为21, CLUSTER_CIDR是172.30.0.0/16,这样集群中有32个node就把地址池用完了

应该设置SubnetLen为24, 这样ip地址段足够分配给node上的容器,也能充分利用ip地址,集群中可以容纳256个节点

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

1 participant