cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pod limit in GKE dynatrace

MariaElena
Contributor

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.

MariaElena_0-1739304484170.png

 

But what I require is to have only two pods, this in order not to use more GKE resources.

Regards

3 REPLIES 3

gopher
Pro

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.

MariaElena
Contributor

Hi gopher,

Thanks for the support, now I understand.

Regards

erh_inetum
Champion

Hi María Elena,

Add to the great post of @gopher I think this can also help you to select only the pods you want to monitor.

Hope it helps,
Regards,
Elena.

Featured Posts