Two projects in a Kubernetes cluster

Hi,

A single k8s cluster environment consists of two projects configured as node pools. Each project belongs to different purchasing departments and they wish to have separate monitoring.

Is there a good idea?

Regards,

Sangjun

Hello @sjkim

You can create two management zones to include node pools and all associated entities.

Regards,

Babar

Hi @Babar_Qayyum

There’s an issue with the department responsible for purchasing licenses. Each department operates different managed servers. What they want to know is if it’s possible to route the two projects to different managed servers.

Regards,

Sangjun

Hello @sjkim

In this case, you can create two environments and assign the license quota, but I do not know how to distribute the Dynatrace cluster nodes from a single Cluster for a particular project.

Regards,

Babar

Hello @sjkim,

I think this could be achieved by using two different dynakubes and specify nodeSelector parameter, the node selector that controls on which nodes OneAgent will be deployed, of course, you need to change URL, api-token, images, …etc

Best Regards,

Mohamed

Hi @Mohamed_Hamdy

Can you tell me if I can use the same dynakube yaml to segregate the hostgroups? I have 10 nodepools and need to set the hostgroup accordingly. Can you tell me if I can do something like below?

oneAgent:
    cloudNativeFullStack:
      # Aplica o OneAgent no nodepool brsanpiautb (Nodepool 1)
      nodeSelector:
        agentpool: "brsanpiautb"
      args:
        - --set-host-group=Nodepool-1
      image: ""

  oneAgent:
    cloudNativeFullStack:
      # Aplica o OneAgent no nodepool brsanpiautg (Nodepool 2)
      nodeSelector:
        agentpool: "brsanpiautg"
      args:
        - --set-host-group=Nodepool-2
      image: ""

  activeGate:
    capabilities:
      - routing
      - kubernetes-monitoring
      - dynatrace-api

    image: ""

    resources:
      requests:
        cpu: 500m
        memory: 512Mi
      limits:
        cpu: 1000m
        memory: 1.5Gi