11 Feb 2025 08:08 PM
Hi Team,
Can someone help me to know how I can limit the number of PODS in oneagent and oneagent-csi-driver in Kubernates. Currently it creates the 7 pods, those 7 pods correspond to the number of nodes created in the cluster.
But what I require is to have only two pods, this in order not to use more GKE resources.
Regards
11 Feb 2025 10:48 PM - edited 11 Feb 2025 10:53 PM
Hi @MariaElena, OneAgent / OneAgent-CSI is a Daemon Set. This means that it will be deployed to all nodes.
This is expected and can't be changed. This is covered here: Dynatrace Operator — Dynatrace Docs
This is mostly because they need to operate at the node level to be able to instrument all pods that are running on the node as well as running the CSI drivers for the OneAgent image /storage.
The only alternate to this is for you to do a combination of Pod Runtime (not automatic injection) and Kubernetes monitoring. this will allow you to run 1 replica set of the Active Gate and only deploy Dynatrace Code Modules - directly via the pod deployment config wherever the pod is deployed.
Kubernetes platform monitoring — Dynatrace Docs
Application observability — Dynatrace Docs
Enjoy.