What's the best cluster scope IPAM using bridge CNI? host local IPAM assign a block of address to each node, which is not ideal for managing cluster as a whole. Please include the network layout and CNI config in the answer.
What's the best cluster scope IPAM using bridge CNI? host local IPAM assign a block of address to each node, which is not ideal for managing cluster as a whole. Please include the network layout and CNI config in the answer.
If you want to assign IP addresses to the pods across all the nodes in a cluster, you can use Whereabouts is the best choice. Compared to other IPAM plugins like host-local, it was assigned the IP addresses to pods on the same node. Whereabouts it assigns IP addresses as cluster-wide. It is used for both IPv4 & IPv6 addressing.
Network Layout: If you take an address range, like 192.168.2.0/24 in CIDR notation, and will assign IP addresses within that range. For this case, it will assign IP addresses from 192.168.2.1 to 192.168.2.255 and Pods will be assigned IP addresses within the cluster network range. Each node in the cluster will have pods connected to a virtual bridge created by bridge CNI.
Network Layout Whereabouts plugin :
IPAM Configuration using whereabouts:
and if you want a bridge between the nodes, For creating bridge configurations.
Bridge CNI Configuration:
Also refer to this whereabouts plugin and Fatih nar’s medium blog for more information.