A method for a routing instance executing on a host computer in a plurality of host computers in a datacenter that execute a plurality of data compute nodes (DCNs) and, together, implement first and second virtual private clouds (VPCs) for first and second tenants of the datacenter, the method comprising:
- at the routing instance executing on the host computer;
- detecting that first and second service instances have been made available on the host computer for respectively providing first and second distributed edge services for ingressing data messages entering respectively the first and second VPCs from machines outside of the first and second VPCs and destined to machines inside of the first and second VPCs;
- identifying first and second network addresses associated respectively with the instantiated first and second service instances;
- and
- advertising the identified first and second network addresses associated with the first and second service instances to a route server operating outside of the host computer for the route server to advertise to a gateway device of the datacenter for the gateway device to use to direct at least a subset of the ingressing data messages to the host computer for the first and second distributed edge services.