# Kubernetes OneAgent-Deploy Init Container Failure

**URL:** <https://community.dynatrace.com/t/kubernetes-oneagent-deploy-init-container-failure/44133>\
**Category:** Container platforms\
**Tags:** dynatrace-operator, oneagent, kubernetes\
**Created:** [February 14, 2024, 11:40pm UTC](https://community.dynatrace.com/t/kubernetes-oneagent-deploy-init-container-failure/44133 "2024-02-14T23:40:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DynaGibbo](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@DynaGibbo](https://community.dynatrace.com/u/DynaGibbo)\
**Post date:** [February 14, 2024, 11:40pm UTC](https://community.dynatrace.com/t/kubernetes-oneagent-deploy-init-container-failure/44133/1 "2024-02-14T23:40:15Z")

</div>

We’re using cloud native full stack on our linux nodes and pods.&nbsp;  
We use the OneAgent-Deploy init container to instrument our node application.&nbsp;  
Suddenly our newly created nodes are failing to instrument the applications in their pods.&nbsp;  
There is an error in the init container logs saying.

“level”:“info”,“ts”:“2024-02-14T05:07:37.135Z”,“logger”:“standalone-init”,“msg”:“standalone agent init started”}

{“level”:“info”,“ts”:“2024-02-14T05:07:37.135Z”,“logger”:“standalone-init”,“msg”:“setting host tenant”}

{“error”:“host tenant info is missing for aks-userreact-80605415-vmss0000x0”,“level”:“error”,“logger”:“standalone-init”,“msg”:“This error has been masked to not fail the container.”,“stacktrace”:"host tenant info is missing for aks-userreact-80605415-vmss0000x0

It seems the secret config value that is printed in the log contains a key value hash of nodes to dynatrace tenant.&nbsp;  
This secret doesn’t contain the newly created node name in it.&nbsp;  
eg.

{“level”:“info”,“ts”:“2024-02-14T05:07:37.135Z”,“logger”:“standalone-init”,“msg”:“contents of secret config”,“content”:{…

“aks-user-42685077-vmss00004b”:“twh49101”…

What is it that populates this key value pair in the config secret?&nbsp;  
What could cause this issue?

---

<div class="post-metadata">

**Author:** ![DynaGibbo](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@DynaGibbo](https://community.dynatrace.com/u/DynaGibbo)\
**Post date:** [February 19, 2024, 12:17am UTC](https://community.dynatrace.com/t/kubernetes-oneagent-deploy-init-container-failure/44133/2 "2024-02-19T00:17:40Z")

</div>

We found the root cause and solved the issue.  
The issue was that our azure app registration secret that was being used for the dynakube-pull-secret secret in the dynatrace kubernetes namespace had expired.  
This was causing the dynatrace operator to fail pulling from our ACR and for reasons stopped it from updating the&nbsp;dynatrace-dynakube-config secret in our instrumented namespaces from being updated.&nbsp;  
Once we updated secret, injected it into the dynatrace namespace and restarted the operator pod the secret in our instrumented namespaces got updated with new node info.  
Restarting our workloads then resulted in our application being instrumented.
