How does the OneAgent communicate if there are multiple ActiveGates involved?

In Dynatrace Managed you can install two different kinds of Security Gateways. A Private Security Gateway, which serves just one environment (tenant) or a Public Security Gateway, which serves all existing environments. The Security Gateways which are pre-installed on cluster nodes are public ones. So I guess what you are looking for is the Managed Public Security Gateway.