03 Jun 2025 12:07 PM
Hi,
We are currently running Dynatrace ActiveGates within each of our Kubernetes clusters. However, our clusters are relatively small and due to the high resource demands of Dynatrace components—especially ActiveGate—we’ve been forced to use large EC2 instances instead of medium ones just to accommodate the load.
We attempted to reduce the CPU requests and limits of the ActiveGates within the clusters, but this led to CPU throttling.
To optimize our resource usage and reduce costs, we would like to explore the possibility of having a single shared ActiveGate running on an EC2 instance outside the clusters, and have all the clusters connect to it.
Can you advise on the best way to configure this setup? Specifically:
What are the required network settings or firewall rules?
How do we configure the OneAgent/Operator in each cluster to point to this external ActiveGate?
Are there any limitations or known issues with this kind of architecture?
Thanks
03 Jun 2025 05:33 PM
Hi @Roman_Asa
Did you managed to switch off the connect containerized ActiveGate to local Kubernetes API endpoint that you found and get the right Kubernetes Bearer Token to access K8S API from the remote AG?
All the best and stay safe
Yos
03 Jun 2025 07:46 PM
Yes I managed to find Kubernetes Bearer Token using the following command:
kubectl get secret dynatrace-monitoring -o jsonpath='{.data.token}' -n dynatrace | base64 --decode
Thanks for the help Yos!