Hi Denis,
Clare Yang
1
Hi Clare,
We’ve used python-consul for accessing Consul data and Facebook’s gnlpy for configuring IPVS. We use NAT for forwarding traffic (gnlpy’s method=IPVS_MASQUERADING).
It’s a really simple script, you just retrieve services from Consul (c.catalog.services()), retrieve pools from IPVS (ipvs.get_pools()), compare them and act (ipvs.add_service(), ipvs.del_service(), ipvs.add_dest(), ipvs.del_dest())