<?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 Dynatrace Service could be missing when Istio is enabled in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Dynatrace-Service-could-be-missing-when-Istio-is-enabled/ta-p/233608</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P class=""&gt;&lt;SPAN&gt;An Istio proxy sidecar needs time to start, which delays network connectivity for other containers in the pod. The OneAgent process in the containers needs to connect to the tenant at startup, to create a Dynatrace Service entity. The OneAgent does allow for this delay, but if connectivity is delayed long enough to exceed the timeout, the Dynatrace Service will be missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A solution is to enable the&amp;nbsp;&lt;A href="https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/" target="_blank" rel="noopener"&gt;global config&lt;/A&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;holdApplicationUntilProxyStarts &lt;/FONT&gt;flag:&lt;/P&gt;&lt;PRE&gt;istioctl install --set meshConfig.defaultConfig.holdApplicationUntilProxyStarts=true&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;or with annotation on a workload pod:&lt;/P&gt;&lt;PRE&gt;annotations:&lt;BR /&gt;  proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'&lt;/PRE&gt;&lt;P&gt;These settings result in the Istio proxy sidecar getting the following &lt;FONT face="courier new,courier"&gt;lifecycle postStart&lt;/FONT&gt; entry, and Kubernetes waits for it to be ready before starting the workload container(s).&lt;/P&gt;&lt;PRE&gt;    lifecycle:&lt;BR /&gt;      postStart:&lt;BR /&gt;        exec:&lt;BR /&gt;        command:&lt;BR /&gt;          - pilot-agent&lt;BR /&gt;          - wait&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This ensures the container network is ready before the workload container is started, allowing the OneAgent to connect without issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 11:58:33 GMT</pubDate>
    <dc:creator>andrey_kishkin</dc:creator>
    <dc:date>2024-01-12T11:58:33Z</dc:date>
    <item>
      <title>Dynatrace Service could be missing when Istio is enabled</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Dynatrace-Service-could-be-missing-when-Istio-is-enabled/ta-p/233608</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P class=""&gt;&lt;SPAN&gt;An Istio proxy sidecar needs time to start, which delays network connectivity for other containers in the pod. The OneAgent process in the containers needs to connect to the tenant at startup, to create a Dynatrace Service entity. The OneAgent does allow for this delay, but if connectivity is delayed long enough to exceed the timeout, the Dynatrace Service will be missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A solution is to enable the&amp;nbsp;&lt;A href="https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/" target="_blank" rel="noopener"&gt;global config&lt;/A&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;holdApplicationUntilProxyStarts &lt;/FONT&gt;flag:&lt;/P&gt;&lt;PRE&gt;istioctl install --set meshConfig.defaultConfig.holdApplicationUntilProxyStarts=true&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;or with annotation on a workload pod:&lt;/P&gt;&lt;PRE&gt;annotations:&lt;BR /&gt;  proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'&lt;/PRE&gt;&lt;P&gt;These settings result in the Istio proxy sidecar getting the following &lt;FONT face="courier new,courier"&gt;lifecycle postStart&lt;/FONT&gt; entry, and Kubernetes waits for it to be ready before starting the workload container(s).&lt;/P&gt;&lt;PRE&gt;    lifecycle:&lt;BR /&gt;      postStart:&lt;BR /&gt;        exec:&lt;BR /&gt;        command:&lt;BR /&gt;          - pilot-agent&lt;BR /&gt;          - wait&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This ensures the container network is ready before the workload container is started, allowing the OneAgent to connect without issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:58:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Dynatrace-Service-could-be-missing-when-Istio-is-enabled/ta-p/233608</guid>
      <dc:creator>andrey_kishkin</dc:creator>
      <dc:date>2024-01-12T11:58:33Z</dc:date>
    </item>
  </channel>
</rss>

