# Dynatrace Operator: OneAgent image for cloudNativeFullStack

**URL:** <https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308>\
**Category:** Container platforms\
**Tags:** openshift, kubernetes\
**Created:** [May 30, 2022, 2:57pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308 "2022-05-30T14:57:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 30, 2022, 2:57pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/1 "2022-05-30T14:57:09Z")

</div>

We are currently updating a customer to the latest operator and want to use the new&nbsp; **cloudNativeFullStack** mode.

The github readme describes it as:

_cloudNativeFullStack&nbsp;is a combination of&nbsp;applicationMonitoring&nbsp;with CSI driver and&nbsp;hostMonitoring_

However the example for the [cloudNativeFullStack configuration](https://github.com/Dynatrace/dynatrace-operator/blob/v0.6.0/config/samples/cloudNativeFullStack.yaml)&nbsp;does not list the option to specify the image for the OneAgent.

Do I have to specify the _hostMonitoring_ part separately when using&nbsp; _cloudNativeFullStack_ or will it be deployed automatically?&nbsp; If the latter, how can I configure the OneAgent image to be used?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [May 30, 2022, 6:51pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/2 "2022-05-30T18:51:03Z")

</div>

As far I noticed , it tries to get the latest version of the OneAgent provided by your tenant.

I am not an specialist on the operator configuration (I let this to my skilled Openshift team hehe), so I will keep my eye here on this thread to see if is there a way to “force” the operator to load some specific image instead of the latest available.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 7:23am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/3 "2022-05-31T07:23:00Z")

</div>

At least with the “old” operator (dynatrace-oneagent-operator), the image version and OneAgent version are decupled though. The latest (or specified) OneAgent version is loaded from the tenant by the image.

But the image can be configured, e.g. with the hostMonitoring setup:

_# Optional: to use a custom OneAgent Docker image. Defaults to the image from_  
_# the Dynatrace cluster_  
_image: “”_

From that comment, I’d assume the OneAgent image is now loaded from the registry included in the cluster?&nbsp;&nbsp;Can the one from e.g. the [Redhat catalog](https://catalog.redhat.com/software/containers/dynatrace/oneagent/596dbcc5d65ec86b4c345a0c) still be used?

The image needs to be synced to the customers’ quay instance.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 31, 2022, 7:28am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/4 "2022-05-31T07:28:27Z")

</div>

Afaik this had been asked multiple times on the forum, I don’t think this is possible.

I hope [@mreider](https://community.dynatrace.com/user/7579)&nbsp;can bring some light here if this is possible or planned.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 8:06am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/5 "2022-05-31T08:06:11Z")

</div>

Haven’t really found anything while searching.

As the image parameter is still there for **classicFullStack** and **hostMonitoring** it would be strange if the same wasn’t true for the **hostMonitoring** part of _ **cloudNativeFullStack** _ though.

---

<div class="post-metadata">

**Author:** ![mreider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mreider/32/14971_2.png) [@mreider](https://community.dynatrace.com/u/mreider)\
**Post date:** [May 31, 2022, 8:18am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/6 "2022-05-31T08:18:09Z")

</div>

Hi&nbsp;[@pahofmann](https://community.dynatrace.com/user/22796)&nbsp;and others. First allow me to explain why this is a problem, and then give you the good news about changes coming in the short-term.

The reason we “removed” the ability to specify an image for Cloud-Native Full-Stack is because there is no image to offer (yet). The Classic Full-Stack image includes code module binaries, as well as the ability to auto-detect whether a container is using MUSL or glibc. This is not possible in Cloud-Native Full-Stack since code modules are injected using a cloud-native webhook, rather than using classic’s fancy Linux tricks in the OneAgent (host agent). Yes, we have code modules available for musl, and glibc, but there is no combined image. Offering these would mean forcing your customer to annotate pods with MUSL or glibc, which is an automation anti-pattern in our opinion.

Ok, so that’s the reason why we didn’t release the feature at the same time as Cloud-Native Full-Stack. Now for the good news.

In the next month or so (fingers crossed​🤞)&nbsp;we are going to offer the “image” key/value pair for Cloud-Native Full-Stack. Instead of waiting for a combined MUSL / glibc image, though, we are going to document and support a tested version of a&nbsp;Dockerfile that shows how to pull the right assets, again from the cluster, into an image that you can store in your own registry. Ultimately, this is a preferable solution for most customers anyhow, as storing an image in your own registry allows you to use whatever tools you’ve built around that registry ( CI / CD / Scanning / etc ).

Longer term we have a plan to offer this, and other assets, in a new-and-improved registry at the dynatrace cluster. The current registry is limited, and has some performance issues as it’s building images dynamically, and supports pre-configured images (api / tokens), which is a&nbsp;:+1:&nbsp; feature, but unimportant for automating deploys across clusters. The new-and-improved registry will be available later this year (more fingers crossed 🤞) and it will offer host agents, code modules, activegates, and any other components as we continue to offer Cloud-Native containerized goodness into the future. We also plan to sign these images using something like [cosign](https://github.com/sigstore/cosign)&nbsp;- but one thing at a time.

Hope that helps clarify. I am trying to use the community forum more these days, so I’ll announce this stuff here as we get closer.

Best,

M

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 9:06am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/7 "2022-05-31T09:06:20Z")

</div>

Hey&nbsp;[@mreider](https://community.dynatrace.com/user/7579),

that’s a good outlook to the future!

We need to migrate the operator to a newer version in the next two weeks however, so waiting is not an option unfortunately.&nbsp; We’d prefer using&nbsp;_cloudNativeFullStack,_&nbsp;as this would mitigate issues with oneagent pods not being up before applications start on cluster restarts.

It’s still unclear to me how _cloudNativeFullStack_ would work right now then. Will it work properly with Operator Version 0.6.0?

---

<div class="post-metadata">

**Author:** ![mreider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mreider/32/14971_2.png) [@mreider](https://community.dynatrace.com/u/mreider)\
**Post date:** [May 31, 2022, 9:51am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/8 "2022-05-31T09:51:55Z")

</div>

Operator 0.6.0 - with Cloud-Native Full-Stack will pull the OneAgent and Codemodule binaries from the Dynatrace cluster and mount them to pods using the CSI Pod. Operator 0.7.0 will offer the new image key / value pair as an alternative.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 10:31am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/9 "2022-05-31T10:31:16Z")

</div>

Okay, that is as I expected but still leaves my initial question from this post open though, as that is only the&nbsp;_applicationMonitoring_&nbsp;part of&nbsp;_cloudNativeFullStack._

The description is:

_cloudNativeFullStack&nbsp;is a combination of&nbsp;applicationMonitoring&nbsp;with CSI driver and&nbsp;hostMonitoring_

Do I have to specify the&nbsp;_hostMonitoring_&nbsp;part separately when using&nbsp;&nbsp;_cloudNativeFullStack_&nbsp;or will it be deployed automatically?&nbsp; If the latter, how can I configure the OneAgent image to be used for the _hostMonitoring_ part?

---

<div class="post-metadata">

**Author:** ![mreider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mreider/32/14971_2.png) [@mreider](https://community.dynatrace.com/u/mreider)\
**Post date:** [May 31, 2022, 11:15am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/10 "2022-05-31T11:15:51Z")

</div>

cloudNativeFullStack is a combination. If you use this option you will get both a host agent and a code module automatically.

The image key / value is unavailable for cloudNativeFullStack - both for the host agent and the code module for cloudNativeFullStack. I guess we could have offered one, and not the other, but this is an awkward half-solution, both for our engineering team (having to write lots of conditional logic that will be thrown away later), and for you, the user. We will offer the full solution - with the image key / value for both the host and code module in 0.7.0 in less than a month (🤞).

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 11:22am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/11 "2022-05-31T11:22:24Z")

</div>

Okay, then last question: If the image is not configurable for the host agent, which one will be used? Will it try to pull from dockerhub then?

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [May 31, 2022, 11:23am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/12 "2022-05-31T11:23:08Z")

</div>

Did you tried customizing the yaml resource for cloudnativefullstack specifying the image? It wont execute and throw error if not supported. If its not specified in CR resource than it will be taking the reference from kuberenets.yaml default file.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 11:39am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/13 "2022-05-31T11:39:50Z")

</div>

As Matthew mentioned above setting the image is currently not supported.

So the question is what the default image used for the host monitoring is when using cloudNativeFullStack with operator 0.6.0

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [May 31, 2022, 12:07pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/14 "2022-05-31T12:07:37Z")

</div>

Yes.. the default resource file than custom resource of kn8s should have reference to public registry which would take the latest image available. I dont have answer to which specific version it would be. Needed to verify the registry resources,

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 1:07pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/15 "2022-05-31T13:07:47Z")

</div>

That is the same for the oneagent-operator, right? The oneagent pod pulls the latest/specified oneagent binary from the cluster.

The [documentation for deployment&nbsp;options](https://www.dynatrace.com/support/help/shortlink/dto-deploy-options-k8s#cloud-native)&nbsp;also lists a OneAgent DaemonSet for cloudNativeFullStack to collect the host metrics.

So there still needs to be an image for that pod which then pulls the OneAgent binary from the cluster, right?

---

<div class="post-metadata">

**Author:** ![mreider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mreider/32/14971_2.png) [@mreider](https://community.dynatrace.com/u/mreider)\
**Post date:** [May 31, 2022, 1:21pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/16 "2022-05-31T13:21:08Z")

</div>

OneAgent Operator pulls an image from Dockerhub / RHCC.  
Dynatrace Operator pulls a host image from the cluster registry.

_note: my previous response was illogical so I deleted it to tighten the thread. You might want to delete your response also as now there will be no context&nbsp;😎._

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 31, 2022, 6:52pm UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/17 "2022-05-31T18:52:57Z")

</div>

Okay. That makes sense then and should, with a firewall adjustment, hopefully work out.

I assume the port for the registry is the default (5000)?

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [June 2, 2022, 12:33am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/18 "2022-06-02T00:33:01Z")

</div>

if it helps, for the Operator - You can modify the kubenetes.yaml and&nbsp;kubernetes-csi.yaml used in the installation to point to an internal repo where you mirror the operator image.

There are 2 /3 lines that point to :&nbsp;[docker.io/dynatrace/dynatrace-operator:v0.x.x](http://docker.io/dynatrace/dynatrace-operator:v0.x.x)

just do a simple replace to your location & follow standard install approach.

you can push image using the following approach.

[Store Dynatrace images in private registries in Kubernetes/OpenShift | Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/kubernetes/other-configuration-options/store-dynatrace-images-in-private-registries-kubernetes)

You will just need to make sure that the k8s cluster where you are deploying has access to your Dynatrace Active Gate (or cluster if your not using AG) so that it can get the one-agent image.

If you can’t / don’t deploy an AG on the k8s cluster, I find that best way to get around this issue of the one agent image, is to revert back to the legacy VM approach, where you have a VM based Active Gate that you can connect to the initial pull down (single connection point across multiple clusters), all you need is to access port 9999.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [June 2, 2022, 7:51am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/19 "2022-06-02T07:51:02Z")

</div>

For the operator the image can be specified,&nbsp; so there is no problem.

The issue was with the OneAgent image, but Matthew clarified that above.

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [March 17, 2023, 11:14am UTC](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308/20 "2023-03-17T11:14:53Z")

</div>

> [@pahofmann](https://community.dynatrace.com/user/22796)&nbsp;wrote:
> 
> […] We’d prefer using&nbsp;_cloudNativeFullStack,_&nbsp;as this would mitigate issues with oneagent pods not being up before applications start on cluster restarts.

[@pahofmann](https://community.dynatrace.com/user/22796)&nbsp;you mentioned here something that we encountered with a customer and got further&nbsp; deployment stuck for quite some time (it causes pods restarting), and appears quite crucial information.&nbsp;  
I did not find anything related on the forum, did you?

[Next page](https://community.dynatrace.com/t/dynatrace-operator-oneagent-image-for-cloudnativefullstack/35308.md?page=2)
