# Dynatrace Service could be missing when Istio is enabled

**URL:** <https://community.dynatrace.com/t/dynatrace-service-could-be-missing-when-istio-is-enabled/43496>\
**Category:** Troubleshooting\
**Tags:** istio, kubernetes\
**Created:** [January 9, 2024, 2:10pm UTC](https://community.dynatrace.com/t/dynatrace-service-could-be-missing-when-istio-is-enabled/43496 "2024-01-09T14:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey\_kishkin](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andrey_kishkin/32/35316_2.png) [@andrey\_kishkin](https://community.dynatrace.com/u/andrey_kishkin)\
**Post date:** [January 9, 2024, 2:10pm UTC](https://community.dynatrace.com/t/dynatrace-service-could-be-missing-when-istio-is-enabled/43496/1 "2024-01-09T14:10:00Z")

</div>

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.

A solution is to enable the [global config](https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/) holdApplicationUntilProxyStarts flag:

```auto
istioctl install --set meshConfig.defaultConfig.holdApplicationUntilProxyStarts=true

```

or with annotation on a workload pod:

```auto
annotations:
  proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'

```

These settings result in the Istio proxy sidecar getting the following lifecycle postStart entry, and Kubernetes waits for it to be ready before starting the workload container(s).

```auto
lifecycle:
      postStart:
        exec:
        command:
          - pilot-agent
          - wait

```

This ensures the container network is ready before the workload container is started, allowing the OneAgent to connect without issues.
