<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to run one ActiveGate pod for each Kubernetes node? in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/How-to-run-one-ActiveGate-pod-for-each-Kubernetes-node/m-p/207360#M1603</link>
    <description>&lt;P&gt;We are deploying ActiveGate as a StatefulSet in a Kubernetes cluster and we want to run one ActiveGate pod on each of the Kubernetes nodes so that we can have the ActiveGate up and running even if some of the Kubernetes nodes go down. But given that theActiveGate pods belong to aStatefulSet and not DaemonSet, are there any ways to deploy them as one for each node?&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 13:12:32 GMT</pubDate>
    <dc:creator>mallikarjuna</dc:creator>
    <dc:date>2023-03-20T13:12:32Z</dc:date>
    <item>
      <title>How to run one ActiveGate pod for each Kubernetes node?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-run-one-ActiveGate-pod-for-each-Kubernetes-node/m-p/207360#M1603</link>
      <description>&lt;P&gt;We are deploying ActiveGate as a StatefulSet in a Kubernetes cluster and we want to run one ActiveGate pod on each of the Kubernetes nodes so that we can have the ActiveGate up and running even if some of the Kubernetes nodes go down. But given that theActiveGate pods belong to aStatefulSet and not DaemonSet, are there any ways to deploy them as one for each node?&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:12:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-run-one-ActiveGate-pod-for-each-Kubernetes-node/m-p/207360#M1603</guid>
      <dc:creator>mallikarjuna</dc:creator>
      <dc:date>2023-03-20T13:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run one activegate pod for each kubernetes node?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-run-one-ActiveGate-pod-for-each-Kubernetes-node/m-p/207366#M1604</link>
      <description>&lt;P&gt;As I know there are no such settings for Operator in DynaKube. I can see&lt;A href="https://github.com/Dynatrace/dynatrace-operator/blob/main/assets/samples/classicFullStack.yaml" target="_self"&gt; only tolerations,&amp;nbsp;annotations&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Maybe others will correct me if I am wrong.&lt;/P&gt;&lt;P&gt;You can simple&amp;nbsp;achieve needed behavior using&amp;nbsp;&lt;A href="https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#never-co-located-in-the-same-node" target="_self"&gt;podAntiAffinity&lt;/A&gt; rules.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanenkov_Al3x_3-1679172385150.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10548iC581B64A646DDEB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanenkov_Al3x_3-1679172385150.png" alt="Romanenkov_Al3x_3-1679172385150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully tested it :&lt;/P&gt;&lt;P&gt;kubectl edit statefulset.app *-activegate&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanenkov_Al3x_0-1679171882125.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10545i6BC3EB2A13F273D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanenkov_Al3x_0-1679171882125.png" alt="Romanenkov_Al3x_0-1679171882125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app.kubernetes.io/component
                operator: In
                values:
                - activegate
            topologyKey: "kubernetes.io/hostname"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kubectl scale statefulset.app *-activegate --replicas=4&lt;/P&gt;&lt;P&gt;I have only three worker nodes, so I get this:&lt;/P&gt;&lt;P&gt;kubectl get pods -o wide -l app.kubernetes.io/component=activegate&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanenkov_Al3x_1-1679171971447.png" style="width: 825px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10546i32C456D88F14D223/image-dimensions/825x85?v=v2" width="825" height="85" role="button" title="Romanenkov_Al3x_1-1679171971447.png" alt="Romanenkov_Al3x_1-1679171971447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I have event:&lt;/P&gt;&lt;P&gt;Warning FailedScheduling pod/k8s2-activegate-3 0/4 nodes are available:&lt;STRONG&gt; 1 node(s) didn't match pod anti-affinity rules, 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Romanenkov Alex&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 20:54:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-run-one-ActiveGate-pod-for-each-Kubernetes-node/m-p/207366#M1604</guid>
      <dc:creator>Romanenkov_Al3x</dc:creator>
      <dc:date>2023-03-18T20:54:40Z</dc:date>
    </item>
  </channel>
</rss>

