<?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 Re: Can I Set dt.security_context via OneAgent args in DynaKube Cloud-Native Full-Stack Mode? in Cloud platforms</title>
    <link>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301543#M2351</link>
    <description>&lt;P&gt;Hey Tahir,&lt;/P&gt;&lt;P&gt;That all looks correct to me! However the steps you have identified for limiting monitoring is optional. You do not have to restrict monitoring to specific pods unless you want to or have a use case to. You can still let the operator roam free.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2026 01:16:15 GMT</pubDate>
    <dc:creator>Fin_Ubels</dc:creator>
    <dc:date>2026-07-03T01:16:15Z</dc:date>
    <item>
      <title>Can I Set dt.security_context via OneAgent args in DynaKube Cloud-Native Full-Stack Mode?</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301413#M2346</link>
      <description>&lt;P class=""&gt;Hi everyone,&lt;/P&gt;
&lt;P class=""&gt;I'm using &lt;STRONG&gt;DynaKube &lt;/STRONG&gt;in &lt;STRONG&gt;cloud-native full-stack monitoring mode&lt;/STRONG&gt; on Kubernetes and need to confirm if I can set dt.security_context using OneAgent args.&lt;/P&gt;
&lt;P class=""&gt;What I want to do:&lt;STRONG&gt;&lt;BR /&gt;spec:&lt;BR /&gt;oneAgent:&lt;BR /&gt;hostGroup: SAMPLE&lt;BR /&gt;cloudNativeFullStack:&lt;BR /&gt;args:&lt;BR /&gt;- "--set-host-property=dt.security_context=my_security_value"&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL class=""&gt;
&lt;LI&gt;
&lt;P class=""&gt;Will this work in cloud-native full-stack mode on Kubernetes?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class=""&gt;If not, what's the recommended way to set dt.security_context in DynaKube cloud-native full-stack mode?&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class=""&gt;I've seen oneagentctl --set-host-property mentioned for VMs (Linux/Windows), but I'm not sure if the same approach applies in the DynaKube args field.&lt;/P&gt;
&lt;P class=""&gt;Any help or experience with this would be appreciated!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 05:41:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301413#M2346</guid>
      <dc:creator>TahirJanwari</dc:creator>
      <dc:date>2026-07-02T05:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Set dt.security_context via OneAgent args in DynaKube Cloud-Native Full-Stack Mode?</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301451#M2347</link>
      <description>&lt;P&gt;May I suggest you to check this link? You can use existing label, metadata, and also you can do set it up at pod level.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/kubernetes-security-context#set-up-security-context-in-kubernetes" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/kubernetes-security-context#set-up-security-context-in-kubernetes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2026 14:13:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301451#M2347</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2026-07-01T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Set dt.security_context via OneAgent args in DynaKube Cloud-Native Full-Stack Mode?</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301482#M2348</link>
      <description>&lt;P&gt;HI Paco,&lt;BR /&gt;Thanks for the input. Based on the Dynatrace documentation [&lt;A href="https://docs.dynatrace.com/docs/shortlink/kubernetes-security-context#security-context-based-on-existing-namespace-labels-or-annotations-recommended" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/kubernetes-security-context#security-context-based-on-existing-namespace-labels-or-annotations-recommended&lt;/A&gt;], this is how I understand the setup:&lt;BR /&gt;&lt;BR /&gt;First, label the namespaces you want to monitor, for example:&lt;BR /&gt;kubectl label namespace NS1 security-context=DEMO&lt;BR /&gt;kubectl label namespace NS1 dt-monitoring=true&lt;BR /&gt;&lt;BR /&gt;Then in DynaKube, configure the namespace selector to pick up only those labeled namespaces&lt;/P&gt;&lt;P class=""&gt;oneAgent:&lt;BR /&gt;hostGroup: DEMO&lt;BR /&gt;cloudNativeFullStack:&lt;BR /&gt;namespaceSelector:&lt;BR /&gt;matchExpressions dt-monitoring&lt;BR /&gt;operator: In&lt;BR /&gt;values: ["true"]&lt;BR /&gt;&lt;BR /&gt;Finally, create an enrichment rule in Dynatrace with source security-context and target &lt;STRONG&gt;dt.security_context.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let me know if my understanding is correct&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 07:44:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301482#M2348</guid>
      <dc:creator>TahirJanwari</dc:creator>
      <dc:date>2026-07-02T07:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Set dt.security_context via OneAgent args in DynaKube Cloud-Native Full-Stack Mode?</title>
      <link>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301543#M2351</link>
      <description>&lt;P&gt;Hey Tahir,&lt;/P&gt;&lt;P&gt;That all looks correct to me! However the steps you have identified for limiting monitoring is optional. You do not have to restrict monitoring to specific pods unless you want to or have a use case to. You can still let the operator roam free.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 01:16:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Cloud-platforms/Can-I-Set-dt-security-context-via-OneAgent-args-in-DynaKube/m-p/301543#M2351</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2026-07-03T01:16:15Z</dc:date>
    </item>
  </channel>
</rss>

