Annotation to block Dynatrace injection in Openshift

Hi,

We have Dynatrace installed in classic Full stack mode (no CSI driver) on Openshift.
For a small number of pods in a namespace we’d like have it so it runs without dynatrace.
I tried the following from Configure monitoring for namespaces and pods — Dynatrace Docs

dynatrace.com/inject
oneagent.dynatrace.com/inject
Setting those to false seemed to do nothing. Is this supposed to work? Or just for the full stack cloud native mode?
Thanks,
Steve

With Classic, you can define some Container Monitoring Rules in your Global Settings to avoid having Dynatrace in some namespaces.

I am really note sure about the inject annotation working for the Classic mode. As per doc page, it should works only for CloudNative and AppOnly

It works only in applicationOnly and cloudNativeFullstack. It has no effect in classicFullStack. For classicfullstack you need the rules mentioned by @dannemca