# Centralized ActiveGate for numerous Kubernetes clusters instead of containerized ActiveGates

**URL:** <https://community.dynatrace.com/t/centralized-activegate-for-numerous-kubernetes-clusters-instead-of-containerized-activegates/51921>\
**Category:** Container platforms\
**Tags:** activegate, kubernetes\
**Created:** [June 3, 2025, 11:07am UTC](https://community.dynatrace.com/t/centralized-activegate-for-numerous-kubernetes-clusters-instead-of-containerized-activegates/51921 "2025-06-03T11:07:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Asa](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Roman\_Asa](https://community.dynatrace.com/u/Roman_Asa)\
**Post date:** [June 3, 2025, 11:07am UTC](https://community.dynatrace.com/t/centralized-activegate-for-numerous-kubernetes-clusters-instead-of-containerized-activegates/51921/1 "2025-06-03T11:07:09Z")

</div>

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

[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [June 3, 2025, 4:33pm UTC](https://community.dynatrace.com/t/centralized-activegate-for-numerous-kubernetes-clusters-instead-of-containerized-activegates/51921/2 "2025-06-03T16:33:09Z")

</div>

Hi&nbsp;[@Roman\_Asa](https://community.dynatrace.com/user/91485)

Did you managed to switch off the **connect containerized ActiveGate to local Kubernetes API endpoint** &nbsp;that you found and get the&nbsp;right&nbsp;Kubernetes Bearer Token to access&nbsp;K8S API from the remote AG?

 ![Yosi_Neuman_0-1748967988744.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/c/ec28bc24257ff624b3b6d331c3f19050c521c616.png)

All the best and stay safe

Yos

---

<div class="post-metadata">

**Author:** ![Roman\_Asa](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Roman\_Asa](https://community.dynatrace.com/u/Roman_Asa)\
**Post date:** [June 3, 2025, 6:46pm UTC](https://community.dynatrace.com/t/centralized-activegate-for-numerous-kubernetes-clusters-instead-of-containerized-activegates/51921/3 "2025-06-03T18:46:58Z")

</div>

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!
