cybozu-go / coil

CNI plugin for Kubernetes designed for scalability and extensibility
Apache License 2.0
164 stars 20 forks source link

MTU auto configuration #129

Closed ymmt2005 closed 3 years ago

ymmt2005 commented 3 years ago

What

It is handy to configure the MTU of veth links automatically.

c.f. https://itnext.io/benchmark-results-of-kubernetes-network-plugins-cni-over-10gbit-s-network-updated-august-2020-6e1b757b9e49

How

In coild,

  1. List all physical Device links with up status: https://pkg.go.dev/github.com/vishvananda/netlink#Device
  2. Choose the minimum MTU among the links
  3. Create veth links with the detected value

Checklist