-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unifying MTU settings in ConfigMap #1770
Conversation
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.
A few comments, thanks!
@@ -21,6 +21,9 @@ data: | |||
# Configure the Calico backend to use. | |||
calico_backend: "bird" | |||
|
|||
# Configure the MTU to use | |||
cni_mtu: "1500" |
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 we just want to call this "mtu" or perhaps "veth_mtu" since it's used by both CNI and Felix.
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.
Also, we should default to the lowest common denominator - from this page it looks like that's 1440.
It would also be great to update the command above with a link for more information.
e.g.:
"# Configure the MTU to use for container veths. See here for more information: https://docs.projectcalico.org/v3.0/usage/configuration/mtu"
master/usage/configuration/mtu.md
Outdated
common network MTU size. The default MTU for the IP-in-IP tunnel device | ||
is 1440 to match the value needed in GCE. | ||
common network MTU size. Moreover, the default MTU for the IP-in-IP tunnel | ||
device is also set to 1500. For GCE deployments, `FELIX_IPINIPMTU` should |
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 we want to leave this at 1440 - that's going to work in the most environments by default. For other environments, users can adjust as desired.
master/usage/configuration/mtu.md
Outdated
@@ -83,6 +84,9 @@ Example CNI configuration | |||
} | |||
``` | |||
|
|||
By default, CNI configuration mtu is set to 1500 by virtue of `"mtu": __CNI_MTU__` variable. |
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.
This isn't quite right - the __CNI_MTU__
variable only affects the CNI plugin. However, the "mtu" option in the ConfigMap is passed to both the CNI plugin and Felix as well.
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.
@caseydavenport thanks for your time for review. I have pushed the change taking care of these comments.
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.
@caseydavenport thanks for your time for review. I have pushed the change taking care of these comments.
@caseydavenport squashed the commits here too. |
@@ -83,6 +83,9 @@ Example CNI configuration | |||
} | |||
``` | |||
|
|||
By default, CNI MTU and `FELIX_IPINIPMTU` derive their value from `veth_mtu` ConfigMap |
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 we need a bit that says "If using a Kubernetes self-hosted manifest to install Calico, ... "
This section isn't kubernetes specific, so by adding Kubernetes specific data we need to make that clear. To be honest, we probably don't need this section at all - I think the comments in the manifests themselves should make this clear. wdyt?
master/usage/configuration/mtu.md
Outdated
common network MTU size. The default MTU for the IP-in-IP tunnel device | ||
is 1440 to match the value needed in GCE. | ||
common network MTU size. The default MTU for the IP-in-IP tunnel device | ||
-is 1440 to match the value needed in GCE. |
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.
is this a typo? I don't think we should have a -
here.
- Have a single point of MTU definition - veth_mtu configmap variable will set mtu for cni as well as FELIX_IPINIPMTU - For more control, both var can still be set individually
my bad :( @caseydavenport. latest commit fixes the typo.
Thanks again for being patient with too many commits.
…On Thu, Mar 29, 2018 at 10:10 AM, Casey Davenport ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In master/usage/configuration/mtu.md
<#1770 (comment)>:
> @@ -28,8 +28,8 @@ packet.
#### Default MTU sizes
The default MTU for workload interfaces is 1500, this is to match the most
-common network MTU size. The default MTU for the IP-in-IP tunnel device
-is 1440 to match the value needed in GCE.
+common network MTU size. The default MTU for the IP-in-IP tunnel device
+-is 1440 to match the value needed in GCE.
is this a typo? I don't think we should have a - here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1770 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_K0gHXe5RR2gaZeGDk6afHtBWE9ws5ks5tjRV1gaJpZM4SvHbE>
.
|
@ketkulka no worries, thanks for running with this! |
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
* Most upstream changes were buried in calico#1884 which switched from non-templated manifests to templating * projectcalico/calico#1884 * projectcalico/calico#1853 * projectcalico/calico#2069 * projectcalico/calico#2032 * projectcalico/calico#1841 * projectcalico/calico#1770
FELIX_IPINIPMTU
Description
Fixes Issue #1482
Todos
Release note