<?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>article Deployment seems successful, but the dynatrace-oneagent container isn't running in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Deployment-seems-successful-but-the-dynatrace-oneagent-container/ta-p/230204</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="tag"&gt;DaemonSet&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Use the following command to process and apply the DaemonSet template.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;oc process -f dynatrace-oneagent-template.yml ONEAGENT_INSTALLER_SCRIPT_URL="[oneagent-installer-script-url]" | oc apply -f -
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;After deployment, check if any pods are running.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;oc get pods
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; No resources found.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is typically the case if the &lt;CODE&gt;dynatrace&lt;/CODE&gt; service account hasn't been configured to &lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation/other/oneagent-daemonset#install" target="_self"&gt;run privileged pods&lt;/A&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;oc describe ds/dynatrace-oneagent

Name:   dynatrace-oneagent
Image(s): dynatrace/oneagent
Selector: name=dynatrace-oneagent
Node-Selector:  
Labels:   template=dynatrace-oneagent
Desired Number of Nodes Scheduled: 0
Current Number of Nodes Scheduled: 0
Number of Nodes Misscheduled: 0
Pods Status:  0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Events:
FirstSeen LastSeen Count From SubObjectPath Type     Reason       Message
--------- -------- ----- ---- ------------- -------- ------------ -------
6m        3m       17         {daemon-set } Warning  FailedCreate Error creating: pods "dynatrace-oneagent-" is forbidden: unable to validate against any security context constraint: [spec.securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.securityContext.hostIPC: Invalid value: true: Host IPC is not allowed to be used spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[0].securityContext.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.containers[0].securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.containers[0].securityContext.hostIPC: Invalid value: true: Host IPC is not allowed to be used]&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Dec 2023 15:00:00 GMT</pubDate>
    <dc:creator>darynakovyrina</dc:creator>
    <dc:date>2023-12-21T15:00:00Z</dc:date>
    <item>
      <title>Deployment seems successful, but the dynatrace-oneagent container isn't running</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Deployment-seems-successful-but-the-dynatrace-oneagent-container/ta-p/230204</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="tag"&gt;DaemonSet&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Use the following command to process and apply the DaemonSet template.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;oc process -f dynatrace-oneagent-template.yml ONEAGENT_INSTALLER_SCRIPT_URL="[oneagent-installer-script-url]" | oc apply -f -
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;After deployment, check if any pods are running.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;oc get pods
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; No resources found.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is typically the case if the &lt;CODE&gt;dynatrace&lt;/CODE&gt; service account hasn't been configured to &lt;A href="https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation/other/oneagent-daemonset#install" target="_self"&gt;run privileged pods&lt;/A&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;oc describe ds/dynatrace-oneagent

Name:   dynatrace-oneagent
Image(s): dynatrace/oneagent
Selector: name=dynatrace-oneagent
Node-Selector:  
Labels:   template=dynatrace-oneagent
Desired Number of Nodes Scheduled: 0
Current Number of Nodes Scheduled: 0
Number of Nodes Misscheduled: 0
Pods Status:  0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Events:
FirstSeen LastSeen Count From SubObjectPath Type     Reason       Message
--------- -------- ----- ---- ------------- -------- ------------ -------
6m        3m       17         {daemon-set } Warning  FailedCreate Error creating: pods "dynatrace-oneagent-" is forbidden: unable to validate against any security context constraint: [spec.securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.securityContext.hostIPC: Invalid value: true: Host IPC is not allowed to be used spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[0].securityContext.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.containers[0].securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.containers[0].securityContext.hostIPC: Invalid value: true: Host IPC is not allowed to be used]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2023 15:00:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Deployment-seems-successful-but-the-dynatrace-oneagent-container/ta-p/230204</guid>
      <dc:creator>darynakovyrina</dc:creator>
      <dc:date>2023-12-21T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment seems successful, but the dynatrace-oneagent container isn't running</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Deployment-seems-successful-but-the-dynatrace-oneagent-container/tac-p/235192#M542</link>
      <description>&lt;P&gt;Anything for Kubernetes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:42:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Deployment-seems-successful-but-the-dynatrace-oneagent-container/tac-p/235192#M542</guid>
      <dc:creator>Sahil1999</dc:creator>
      <dc:date>2024-01-23T08:42:23Z</dc:date>
    </item>
  </channel>
</rss>

