# Kubernetes injection was not configured for this process

**URL:** <https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [June 11, 2024, 7:08pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057 "2024-06-11T19:08:14Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 11, 2024, 7:08pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/1 "2024-06-11T19:08:14Z")

</div>

Hello,

Anybody know what Dt means by below message?

It is a ngnix process.

 ![henk_stobbe_0-1718132760015.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0546de4cbebc2c7dfd57392db4bb723986cbfe48.png)

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [June 11, 2024, 8:39pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/2 "2024-06-11T20:39:40Z")

</div>

Hello [@henk\_stobbe](https://community.dynatrace.com/user/11427) Could you please check if you have something of the type DO NOT MONITOR configured here:

 ![DanielS_0-1718138307578.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/b/0b3a570f4ffdad0a2a70522736277265a14bf8ce.png)

regarding NGINX pods?

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 11, 2024, 8:51pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/3 "2024-06-11T20:51:28Z")

</div>

Hallo Daniel,

Thanks for your reply, to be honest I did not check. But I am lucky (-;

 ![henk_stobbe_0-1718139057863.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/7/57ab0b97328870b2d7ec6bd903ecc1e46731a513.png)

Again thank you!

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [June 12, 2024, 4:55am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/4 "2024-06-12T04:55:18Z")

</div>

Hi&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)

I confirm you that Container Monitoring Rules disable processes injection as Daniel says. We’ve configured some rules here and it’s disabled the deep monitoring in the processes running in the namespaces that match with the rules.

But in our case, Kubernetes is on cloudNativeFullStack and it shouldn´t apply the rules:

 ![erh_inetum_2-1718167694679.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/0/b05d595826dd8810555031e48f263200e81720be.png)

But it’s doing it!

We changed the deployment mode from classicfullstack to cloudnativefullstack.

Maybe this is reason for which the rules continue applying. Does anyone know if this may be the reason?

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 12, 2024, 7:17am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/5 "2024-06-12T07:17:22Z")

</div>

Daniel Elena,

Both, thank you for your great tips, but there was one (and wrong) namespace defined in the dynakube.yaml.

My apologies,but still great hints, thanks!

KR Henk

---

<div class="post-metadata">

**Author:** ![PedroDeodato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pedrodeodato/32/32284_2.png) [@PedroDeodato](https://community.dynatrace.com/u/PedroDeodato)\
**Post date:** [June 18, 2024, 11:21am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/6 "2024-06-18T11:21:40Z")

</div>

I’m facing the same issue…

We did a fresh installation, with Cloud Native Full Stack, and nearly every application process shows this message: so, no services monitored 😞

We did not have any rule on the environment nor any annotation/label on any Kubernetes entity.

Does anyone know what might be the cause of this and what should we do to ensure that every application pod has deep monitoring??

Thanks!

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [June 18, 2024, 2:03pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/7 "2024-06-18T14:03:41Z")

</div>

Have you validated the deployment? If possible, could you please share the results of the following commands?

kubectl get dynakube -n dynatrace  
kubectl get pods -n dynatrace

are you able to see the dynatrace-oneagent-csi-driver?

Please note that both the OneAgent and the CSI driver are deployed as DaemonSets. Therefore, you should have a OneAgent and a CSI driver pod running on each node.

---

<div class="post-metadata">

**Author:** ![umeshdt2023](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@umeshdt2023](https://community.dynatrace.com/u/umeshdt2023)\
**Post date:** [July 15, 2024, 3:07pm UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/8 "2024-07-15T15:07:11Z")

</div>

Any suggestion/recommendation on “Deep monitoring is not active”. We are seeing this for all .net/Java/ngix

 ![umeshdt2023_0-1721055621172.png](https://global.discourse-cdn.com/dynatrace/original/1X/5594e00d3d386dbe68fa9c11ba13fd1d63995374.png)

We installed using cloud native full stack monitoring steps and all Dynatrace pods are running but seeing following message.

![umeshdt2023_1-1721055974231.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/8/a86e62ba122a7dbb32edab64f85e8ed67934e9d6.png)

---

<div class="post-metadata">

**Author:** ![apanoobee](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@apanoobee](https://community.dynatrace.com/u/apanoobee)\
**Post date:** [August 13, 2024, 9:04am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/9 "2024-08-13T09:04:33Z")

</div>

Hi&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)&nbsp;- are you able to share which bit in the dynakube yaml file you’ve seen the error in?

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [September 18, 2024, 8:38am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/10 "2024-09-18T08:38:52Z")

</div>

Hi&nbsp;[@PedroDeodato](https://community.dynatrace.com/user/40725),

I’m having the precise same issue. Fresh installation using&nbsp;cloudNativeFullStack. On a surface level, the full-stack monitoring seems to be working normally, but then all potential processes which could be deep monitored are seeing this error message. Did you manage to resolve it? Any idea where that “Kubernetes injection was not configured for this process” is coming from?

At least is doesn’t appear to be coming from custom process monitoring rules, because then it would specifically say it’s disabled due to a rule.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 18, 2024, 8:53am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/11 "2024-09-18T08:53:41Z")

</div>

Hi&nbsp;[@umeshdt2023](https://community.dynatrace.com/user/66175),&nbsp;[@kalle\_lahtinen](https://community.dynatrace.com/user/25049)&nbsp; and&nbsp;[@PedroDeodato](https://community.dynatrace.com/user/40725)&nbsp;,

Did you try to lauch this

kubectl label namespace \<my\_namespace\> [dynatrace.com/inject=true](http://dynatrace.com/inject=true)

?

Doc:&nbsp;[Configure monitoring for namespaces and pods — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/annotate#monitor-specific-namespaces)

As far as I know, deep monitoring for Cloud Native Full Stack is not enable at least you specify what namespaces, pods, etc. you want to monitor.

On my experience, I had to do that for having deep monitoring in the namespaces in which we wanted to have deep monitoring.

Hope it helps.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [September 18, 2024, 9:16am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/12 "2024-09-18T09:16:21Z")

</div>

Hi Elena,

At the beginning of that doc it says:

" **By default** , Dynatrace Operator injects OneAgent into **all namespaces** , except for:

Namespaces prefixed with kube- or openshift-.  
The namespace where Dynatrace Operator was installed."

Therefore we shouldn’t have to separately use that config, like it says: “To configure the Dynatrace Operator to inject OneAgent into **only** certain namespaces”.

It sounds like that config can be used if you want to disable the injection for most namespaces, and then only include a handful. But by default we should have everything included (except ones starting with kube- or openshift-).

---

<div class="post-metadata">

**Author:** ![PedroDeodato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pedrodeodato/32/32284_2.png) [@PedroDeodato](https://community.dynatrace.com/u/PedroDeodato)\
**Post date:** [September 18, 2024, 9:45am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/13 "2024-09-18T09:45:59Z")

</div>

My interpretation was the same as&nbsp;[@kalle\_lahtinen](https://community.dynatrace.com/user/25049)&nbsp;…

But I haven’t test this again for a long time… after facing the issue, we tried Classic Full-Stack and it worked like a charm, first try (after restart, obviously). Never tried Cloud Native Full Stack since.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 18, 2024, 9:50am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/14 "2024-09-18T09:50:10Z")

</div>

Hi Pedro and&nbsp;[@kalle\_lahtinen](https://community.dynatrace.com/user/25049)&nbsp;,

Thanks both for your comments.

Yes. I though like you two but we did that I said and got enabling deep monitoring. For that reason I suggested testing that.

Thanks and Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![PedroDeodato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pedrodeodato/32/32284_2.png) [@PedroDeodato](https://community.dynatrace.com/u/PedroDeodato)\
**Post date:** [September 18, 2024, 9:53am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/15 "2024-09-18T09:53:25Z")

</div>

Greetings,&nbsp;[@kalle\_lahtinen](https://community.dynatrace.com/user/25049)&nbsp;!

I also replied above on&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;'s message, but I’ll leave it here also a more detailed description, for reference.

Basically, after several interactions with Dynatrace Chat & Dynatrace Support, we gave up on Cloud Native Full-Stack.

In our case, it was not working as it is unable to instrument namespace that have a label “managedby: aks” (not the actual name of the label, but it was something like that). But our client’s namespace did have this labels, purposedly, which could not be removed.

So, facing this dead end, we uninstalled the Cloud Native Full Stack and proceeded with Classic Full Stack.

All we did was install, restart application pods and everything was instrumented right away.

Since then, just to be safe, we have always went straight with Classic Full Stack: it was working great before Cloud Native Full Stack was even the default, and it continues to work great now.

Yes, it does require a restart but it is much easier to deal with customer expectations/unsatisfaction with requesting a restart, rather that having lots of messages that raise questions and services not being instrumented.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 18, 2024, 11:29am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/16 "2024-09-18T11:29:31Z")

</div>

Hello&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)

**Kindly,**

**first check on the environment level**

 ![Peter_Youssef_0-1726658302139.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/a/eaf5205e7f42f4bc9fa45ba96806bc7c320d8c8e.png)

**container monitoring level**

 ![Peter_Youssef_1-1726658415254.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/8/882b542b75a8a25ab4dab4e0c3dc6bcfea23d5ef.png)

**ensure cloud application and workload detection is enabled for K8s**

 ![Peter_Youssef_3-1726658621390.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/71686452d9afd426a808e64c4e4cc5aad9798d71.png)

ensure onaagent services are configured and Restart is executed

 ![Peter_Youssef_4-1726658724874.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/6/964030f5f15c103a277459a1b184c887b2fe83a8.png)

**try adding container monitoring rule**

 ![Peter_Youssef_2-1726658511585.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/9/4957e5a927a4766f6ead2dbee9710420d7b41c23.png)

update operator version, restart and validate the Process technology is supported or not

> **[Technology support](https://docs.dynatrace.com/docs/ingest-from/technology-support)**
>
> Find technical details related to Dynatrace support for specific platforms and development frameworks.

Thanks.

---

<div class="post-metadata">

**Author:** ![rgarzon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rgarzon1/32/11844_2.png) [@rgarzon1](https://community.dynatrace.com/u/rgarzon1)\
**Post date:** [November 12, 2024, 12:04am UTC](https://community.dynatrace.com/t/kubernetes-injection-was-not-configured-for-this-process/46057/17 "2024-11-12T00:04:32Z")

</div>

After trying everything in this thread, we were able to get it to work.  
 ![rgarzon1_0-1731369718753.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a7b19e2709805264dd3e942471ff9532016f33ea.png)  
We are using GKE, and after reviewing the following link:[Kubernetes Monitoring Statistics monitoring | Dynatrace Hub](https://www.dynatrace.com/hub/detail/kubernetes-monitoring-statistics/?query=kubernetes+&filter=all)We identified that the Kubernetes API was the issue. We followed these steps:

 ![rgarzon1_0-1731369999570.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/3/73d42a4af57d0bab20ff7a7b099dd871a0bc1867.png)

- Check the control panel IP:We used the following command to retrieve the Kubernetes control plane information:[How it works — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/how-it-works-k8s#cloud-native-resources)

```python
kubectl cluster-info

```

- The result was:Kubernetes control plane is running at https://192.168.0.0- Update Firewall Ingress Rules:We then added this IP to the ingress rules in the firewall using the following command:

```python
gcloud compute firewall-rules create allow-webhook-api-server \
    --direction=INGRESS \
    --action=ALLOW \
    --rules=tcp:8443,8383,100200,8443 \
    --source-ranges=192.168.0.0/8

```

-&nbsp;Service Restart:

After adding the rules, the webhook service started working again. After rebooting the services, everything resumed functioning properly.Hope it helps
