k8snetworkplumbingwg / whereabouts

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

[RFE] node affinity range #400

Open halfcrazy opened 9 months ago

halfcrazy commented 9 months ago

Is your feature request related to a problem? Please describe. I have different ranges for different nodes. My workload works in all nodes, I want one config to manage them all.

Describe the solution you'd like

      "ipam": {
        "type": "whereabouts",
        "ipRanges": [{
            "range": "192.168.10.1/24",
            "nodeSelector": {"trie":"t0"}
          }, {
            "range": "176.168.11.1/24",
            "nodeSelector": {"trie":"t1"}
        }]
      }

Describe alternatives you've considered Multiple network-attach-defs may work. But I want to reuse one config.

Additional context Add any other context or screenshots about the feature request here.