[RFE] Have a consistent way to configure MTU across Charmed Kubernetes

Bug #1875322 reported by Pedro Guimarães
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Calico Charm
Fix Released
Wishlist
Pedro Guimarães
Canal Charm
Triaged
Wishlist
Unassigned
Flannel Charm
Triaged
Wishlist
Unassigned
Tigera Secure EE Charm
Triaged
Wishlist
Unassigned

Bug Description

As of today, there is no consistent way to configure MTU sizes on Charmed Kubernetes.
A user wanting to do so has to use config-flags or tweak with services deployed by CK manually to get it correctly.

We should provide one single config option that would enforce mtu sizing across the entire cluster.

One example, we can select MTU sizes with Calico, if we set options such as:
FELIX_IPINIPMTU, from: https://docs.projectcalico.org/reference/felix/configuration

That will allow us to define Calico's MTU size interface when using IP-over-IP.

Still, once you define it and you access a container, you can see that MTU size did not change within that container.
I am not entirely aware how can we enforce that across all containers.
There is an option for that on kubelet though:
--network-plugin-mtu int32
The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU. This docker-specific flag only works when container-runtime is set to docker.
Docs: https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/

However, this seems to be docker-specific. Is there a way to achieve a pod-wide MTU setting with containerd as well?
On my tests with Calico + Containerd, containers seemed to be ignoring the MTU set on calico interface using FELIX_IPINIPMTU.

Revision history for this message
Pedro Guimarães (pguimaraes) wrote :
Changed in charm-calico:
status: New → In Progress
assignee: nobody → Pedro Guimarães (pguimaraes)
tags: added: review-needed
George Kraft (cynerva)
Changed in charm-calico:
status: In Progress → Fix Committed
milestone: none → 1.19
tags: removed: review-needed
no longer affects: charm-kubernetes-worker
no longer affects: charm-containerd
no longer affects: charm-docker
Changed in charm-canal:
status: New → Confirmed
Changed in charm-flannel:
status: New → Confirmed
Changed in charm-tigera-secure-ee:
status: New → Confirmed
George Kraft (cynerva)
Changed in charm-calico:
importance: Undecided → Wishlist
Changed in charm-canal:
importance: Undecided → Wishlist
Changed in charm-flannel:
importance: Undecided → Wishlist
Changed in charm-tigera-secure-ee:
importance: Undecided → Wishlist
Changed in charm-canal:
status: Confirmed → Triaged
Changed in charm-flannel:
status: Confirmed → Triaged
Changed in charm-tigera-secure-ee:
status: Confirmed → Triaged
Changed in charm-calico:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.