In the previous post, we end up abusing subnets and routing to get Calico to exist on the correct subnet, but what if we could get rid of Calico’s duplicate IPAM system and just depend on our existing DHCP server to handle reservations? In this post, we’re going to prototype a cluster that uses DHCP + layer 2 Linux bridging to avoid the complications outlined in Part 3.
The official CNI documentation describes two plugins that could be relevant.
With dhcp plugin the containers can get an IP allocated by a DHCP server already running on your network.https://www.cni.dev/plugins/current/ipam/dhcp/
This avoids overlapping IPAM problems with the previous solution and means that the DHCP server already running on my network would be responsible for handing out IP addresses directly to the containers.Continue reading “Home Lab: Part 4 – A DHCP IPAM”