-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
When using Calico CNI, the MTU of the pod NIC is set to 1500 with a random probability. #9718
Comments
I guess the reason for that is that some pods are created after calico-node (Felix part) starts up and does all the detection while some are started right after CNI is available and the file is not written yet. Idk why the log is not printed though if there is no file yet 🤔 |
@tomastigera |
The function checks for other cases as well:
Can you share calico node log with incorrect MTU. |
There is a problem with the MTU settings of the calico veth NIC (ex : calif4fad8d7ab0).
The calico specs are as follows:
Test host NIC environment is as follows:
Also found the following in felix log
felix/int_dataplane.go 1086: Determined pod MTU mtu=1400
The MTU of the veth NIC assigned to the Pod should be calculated as follows and set to 1400
However, with some probability, 1500 is allocated to a specific veth0 interface, such as the calif4fad8d7ab0 interface.
Expected Behavior
All calico veth interfaces must have their MTU set to 1400
Current Behavior
There is a calico veth NIC that is randomly set to 1500.
Possible Solution
Pod delete and deploy or restart nodes
Steps to Reproduce (for bugs)
Context
k8s cluster networking error
Your Environment
The text was updated successfully, but these errors were encountered: