-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 setting wrong MTU on AWS #841
Comments
We upgraded to the Alpha version |
@sgarg1 This is strange indeed. Could you share some of the output from flannel when it starts? You should see something like
This will confirm that it's actually choosing You can also run
|
Also, if I create a dummy device
And start flannel
Then I see the correct MTU
I'm going to close since I can't repro but please provide more info and I'll re-open if we can repro it. |
I don't see anywhere in the vxlan backend that would actually change the MTU it just sets up the device which gets the default MTU of 1500 afaict. @tomdee Did you use vxlan in the example above? I see that the udp backend as code for setting the MTU, maybe this is used? (https://github.com/coreos/flannel/blob/master/backend/udp/udp_network.go#L120) Whether it makes sense to change the MTU when using vxlan I don't know? |
@mikkeloscar Yes I was using vxlan. I 'm pretty sure that the correct MTU is automatically set by linux (to the "host" interface -20) |
We run 100s of Container Linux stable nodes on AWS and we see the same 1500 MTU value for all interfaces (except eth0 which is 9001). If I change the default MTU with a This is our node configuration fwiw: https://github.com/zalando-incubator/kubernetes-on-aws/blob/dev/cluster/userdata-worker.yaml |
Does this resolve to an IP address on an interface that has the 9000 MTU? |
I'm sorry, I don't fully understand what you mean? Do you mean if flannel uses the eth0 interface? It always does, example from one flannel log:
And the interfaces on this host:
|
I'm able to repro this on AWS now:
|
Flanneld is not detecting the host interface's mtu
Expected Behavior
Flanneld should detect the mtu of the host interface and should set the variable for
DOCKER_OPT_MTU
to interface MTU - 50, on AWS this should be 9001-50 = 8951. This is what I have in a different cluster running an older version.Current Behavior
Flanneld version 0.8 which is bundled with CoreOS 1520.6.0 is not detecting the host interface's mtu and is therefore passing the wrong mtu values to docker.
Possible Solution
No idea how to
Steps to Reproduce (for bugs)
Install kubernets 1.7.7 on CoreOs using flanneld with vxlan on AWS.
Your Environment
systemctl cat flanneld
ifconfig
cat /var/run/flannel/flannel_docker_opts.env
cat /var/run/flannel/subnet.env
etcd values
The text was updated successfully, but these errors were encountered: