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

Assign Specific Pods to Certain Nodes in Dynatrace Kubernetes Deployment

agylpradipta
Helper

Hello All,

Regarding the Dynatrace deployment for Kubernetes, there are several pods that will be formed:

  • dynakube-activegate-0
  • dynatrace-operator-xxxx
  • dynatrace-webhook-xxx
  • dynatrace-webhook-yyy

Now, the Kubernetes Admin team has requested to place the mentioned pods on a dedicated node that have resource allocation for Dynatrace.

Is there a way to allocate these pods to a specific node? Such as using labels or node selectors?

Thank you.

3 REPLIES 3

Mizső
DynaMight Guru
DynaMight Guru

Hi @agylpradipta,

I always use nodeSelector for this configuration in the custom resource yaml proper section.

In my case this example is used for oneagent, dynakube oneagent scheduled on the nodes which ones have worker role.

nodeSelector:
        "node-role.kubernetes.io/worker": ""
I hope it helps.
 
Best regards,
Mizső
Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Thank you for the insight.

However, have you ever tried adding nodeSelector for the webhook or dynatrace-operator?

Should it be conceptually the same?

Thank you

Hi @agylpradipta,

We had another solution for it. I have to ask the client openshift admins about it. Maybe I can come back with the answer next week after Easter.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts