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

calico的MTU配置 #1444

Open
vistamin opened this issue Feb 13, 2025 · 1 comment
Open

calico的MTU配置 #1444

vistamin opened this issue Feb 13, 2025 · 1 comment

Comments

@vistamin
Copy link

在roles/calico/templates/calico-vxxx.yaml.j2文件中,mtu值写死为1500,会导致生成的/etc/cni/net.d/10-calico.conflist文件中mtu也是1500,进而导致创建pod里面的网卡mtu也是1500。
在pod之间tcp三次握手阶段,填写的MSS值会是1460(1500-40),或者65495(65535-40),然而宿主机上vxlan.calico(假定是vxlan封包)的mtu是1440。这在一次发送长度大于MTU的包时,会遇到分包的问题,导致发送数据包失败。

@vistamin
Copy link
Author

vistamin commented Feb 13, 2025

官方的calico.yaml文件( https://docs.projectcalico.org/archive/v3.15/manifests/calico-etcd.yaml ) ,都是取自veth_mtu,而不是硬编码为1500。

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