aws / amazon-vpc-cni-k8s

Networking plugin repository for pod networking in Kubernetes using Elastic Network Interfaces on AWS
Apache License 2.0
2.28k stars 743 forks source link

Is there an overhead introduced by the Amazon VPC CNI plugin for EKS on the MTU (Maximum Transmission Unit) #3085

Closed gsustek closed 2 weeks ago

gsustek commented 1 month ago

If i set : AWS_VPC_ENI_MTU = 1500

how much i need to set POD_MTU = ?

Does this calculation applies? Effective MTU = Default MTU - VXLAN Overhead

Sorry for question, is even an AWS VPC CNI is an overlay network?

orsenthil commented 3 weeks ago

Is AWS VPC CNI is an overlay network?

No, it is not an overlay network plugin.

orsenthil commented 2 weeks ago

As answered, AWS VPC CNI is not an overlay plugin. VXLAN and VXLAN Overhead doesn't come into picture.

The POD_MTU was supported when customers tried to use Cilium with Wireguard as chain plugin with VPC CNI (before VPC CNI supported Network Policy). When customers ran into this and requested for the ability set MTU at pod level (because cilium wireguard extension was using overlay and providing Network Policy), it was introduced as support here - https://github.com/aws/amazon-vpc-cni-k8s/issues/2606

If you are only using VPC CNI, you don't need set POD_MTU and it will default to AWS_VPC_ENI_MTU.

Hope this clarifies.

github-actions[bot] commented 2 weeks ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.