# Update the image of the OneAgent in Kubernetes

**URL:** <https://community.dynatrace.com/t/update-the-image-of-the-oneagent-in-kubernetes/43997>\
**Category:** Container platforms\
**Tags:** dynatrace-operator, kubernetes\
**Created:** [February 6, 2024, 8:42am UTC](https://community.dynatrace.com/t/update-the-image-of-the-oneagent-in-kubernetes/43997 "2024-02-06T08:42:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorikVL](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jorikVL](https://community.dynatrace.com/u/jorikVL)\
**Post date:** [February 6, 2024, 8:42am UTC](https://community.dynatrace.com/t/update-the-image-of-the-oneagent-in-kubernetes/43997/1 "2024-02-06T08:42:41Z")

</div>

Hi,

I was wondering how I would be able to update the image of the OneAgent in Kubernetes.

We have a problem with aks version 1.26.2 that enables cgroups v2. We have enabled the feature flags in this article: [https://community.dynatrace.com/t5/Dynatrace-tips/Introducing-cgroups-v2-support/m-p/188528#M422](https://community.dynatrace.com/post/188528#M422)

But when we do that our application breaks. We are using the latest tag in our deployments but it doesn’t use the v1.253 version that fixes this issue and let’s us run the OneAgent pod unprivileged.

Running the OneAgent pod in privileged mode will break our application after every deploy.

---

<div class="post-metadata">

**Author:** ![bsnurka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bsnurka/32/26730_2.png) [@bsnurka](https://community.dynatrace.com/u/bsnurka)\
**Post date:** [February 7, 2024, 4:22pm UTC](https://community.dynatrace.com/t/update-the-image-of-the-oneagent-in-kubernetes/43997/2 "2024-02-07T16:22:02Z")

</div>

Hey Jorik,

How are the OneAgent Pods being deployed currently? If you are using the [Dynatrace Operator,](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/guides/operation/update-uninstall-operator)&nbsp;the OneAgent Pod should have its lifecycle managed and be updated. If automatic updates are disabled, you can execute the following to manually update the OneAgent pods.

```markup
kubectl -n dynatrace rollout restart daemonset/<DYNAKUBE>-oneagent

```

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [May 27, 2024, 2:32pm UTC](https://community.dynatrace.com/t/update-the-image-of-the-oneagent-in-kubernetes/43997/3 "2024-05-27T14:32:33Z")

</div>

Hello.

Is Automatic Updates setting affecting the containerized OneAgents. For example, if I put all worker Nodes on a HostGroup and set “Disable Automatic Updates”, is this safe that updates will be skipped?

If so, what is the meaning for this variable on the DynaKube?

[DynaKube parameters for Dynatrace Operator — Dynatrace Docs](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/reference/dynakube-parameters) → autoUpdate)

Thanks!
