tkestack / galaxy

Providing high-performance network for Kubernetes
Other
109 stars 39 forks source link

add mtu config in ipvlan and macvlan mode #108

Closed yaoice closed 3 years ago

yaoice commented 3 years ago

Default mtu value is 1500 in ipvlan and macvlan mode, it can set mtu by using the following configuration:

# kubectl -n kube-system edit cm galaxy-etc 
data:
  galaxy.json: |
    {
      "NetworkConf":[
       ......
       {"name":"galaxy-k8s-vlan","type":"galaxy-k8s-vlan", "device":"eth0", "switch":"ipvlan", "ipvlan_mode":"l2", "mtu": 1450},
       ......