k8snetworkplumbingwg / whereabouts

A CNI IPAM plugin that assigns IP addresses cluster-wide
Apache License 2.0
273 stars 120 forks source link

can't specify multiple master net interface name[BUG] #423

Open Saigut opened 4 months ago

Saigut commented 4 months ago

Describe the bug The rdma net interface in nodes in k8s cluster have different names, for example: enp111np0 in node1, enp222np0 in node2 But in the config:

{
      "cniVersion": "0.3.0",
      "name": "whereaboutsexample",
      "type": "macvlan",
      "master": "enp111np0",
      "mode": "bridge",
      "ipam": {
        "type": "whereabouts",
        "range": "192.168.2.225/28",
        "exclude": [
           "192.168.2.229/30",
           "192.168.2.236/32"
        ]
      }
}

Only one "master" can be specified. How should I do for those rdma net interface in different name?