k8snetworkplumbingwg / multus-cni

A CNI meta-plugin for multi-homed pods in Kubernetes
Apache License 2.0
2.29k stars 575 forks source link

IP Range Multiple Allocation in DHCP #1227

Closed mslee89 closed 5 months ago

mslee89 commented 5 months ago

I want multiple IP ranges assigned to each application from one DHCP or more. Or just a specific IP range. Here's a brief description.

A Application should be assigned 1.1.1.0/24 and 3.3.3.0/24, and B Application should be assigned only 2.2.2.0/24 services. Is it possible to do these settings in Multus? So far, I have used the host-local of IPAM, but I want to change it to DHCP and use it.

There doesn't seem to be anything I can set up on the site provided below. https://www.cni.dev/plugins/current/ipam/dhcp/

dougbtv commented 5 months ago

@mslee89 the DHCP IPAM CNI plugin is indeed the reference plugin to use for DHCP. Remember, that the DHCP CNI plugin also requires a daemon. I'm not sure if it solves everything you're looking for, but it will solve the DHCP IP address assignment.

You might also consider https://github.com/k8snetworkplumbingwg/whereabouts for assigning IP addresses as well.