I have a cluster setup (with fan networks) and would like to reserve the first few ip addresses on each host for static containers (e.g. egress proxys).
dnsmasq.raw: dhcp-range can only be set once of the whole network across all hosts, which isn’t right for what I want in two different ways.
I can start the “service” containers after LXD start / restart, but this give rise to a brief period when these addresses could be allocated to another container.
Is there an “auto-start” option for containers which would allow these service containers to be started before all others?
I could probably fake it by adding something into /var/snap/lxd/common/lxd/networks/lxdfan0/dnsmasq.raw on each host, but this looks, to me, to be a fragile hack.
Can you advise, what’s the best option?
p.s. fanctl has a --host-reserve option for this purpose.