-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Configure calico MTU #7480
Configure calico MTU #7480
Conversation
# Configure the MTU to use | ||
veth_mtu: "1440" | ||
{{- if .Networking.Calico.MTU }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test this last commit. But if MTU is not defined in cluster spec this is not executed, right? Because MTU is *int32 it is then nil. So if someone wants to configure MTU its now possible - otherwise we use default values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so but we should probably confirm via a test. I can probably test this in a bit.
c818819
to
381557c
Compare
/assign @mikesplain |
# Configure the MTU to use | ||
veth_mtu: "1440" | ||
{{- if .Networking.Calico.MTU }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so but we should probably confirm via a test. I can probably test this in a bit.
{{- if .Networking.Calico.MTU }} | ||
veth_mtu: "{{ .Networking.Calico.MTU }}" | ||
{{- else }} | ||
veth_mtu: "{{- if eq .CloudProvider "openstack" -}}1430{{- else -}}1440{{- end -}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part of me wonders if this can all be avoided by doing the logic upstream of setting MTU if not set to either 1440 or 1430 depending on provider. That said I can't think of a straight forward spot to put that right now so this is probably okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this line and it worked well, maybe not the best solution but works
I would like to see this in 1.15 alpha - will execute tests later today |
Tested with following use cases:
so everything works as should |
@justinsb could you check this before doing 1.15 alpha. I just want this to be part of 1.15 alpha :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it’s feature gated and seems important enough to get it into 1.15
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrisz100, zetaab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
If I am using 1440 MTU in openstack, it is not working at all. After modifying it to 1430 calico works fine.
Like this doc says the correct value for openstack is 1430:
https://docs.projectcalico.org/v3.7/networking/mtu