# Disable OneAgent Automatic Update on kubernetes cluster

**URL:** <https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029>\
**Category:** Open Q&A\
**Tags:** installation, oneagent, kubernetes\
**Created:** [September 28, 2024, 12:45pm UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029 "2024-09-28T12:45:28Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [September 28, 2024, 12:45pm UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/1 "2024-09-28T12:45:28Z")

</div>

Hi everyone.

I would like to know what is the proper method to disable automatic OneAgent updates on a kubernetes cluster.

Is it via Host Group settings or via the AutoUpdate parameter on the Dynakube file?

Thank you.

---

<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 28, 2024, 3:08pm UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/2 "2024-09-28T15:08:12Z")

</div>

Hi&nbsp;[@Theodore\_x86](https://community.dynatrace.com/user/50066)

- It’s better to use Dynakube file.
- As per Dynatrace you can update Oneagents if the **automatic updates are disabled** through running the below commands
- K8s:&nbsp;kubectl -n dynatrace rollout restart daemonset/\< **DYNAKUBE** \>-oneagent
- OpenShift:&nbsp;oc -n dynatrace rollout restart daemonset/\< **DYNAKUBE** \>-oneagent
- to update ActiveGates Pods:&nbsp;kubectl -n dynatrace rollout restart statefulset/\< **ACTIVEGATE-STATEFULSET-NAME** \>

**Tip** :

- You should put actual names as per the current setup.

To update Dynatrace Operator using manifest for the mentioned monitoring methods :&nbsp;classicFullStack,&nbsp;applicationMonitoring, and host monitoring

execute the attached command&nbsp;kubectl apply -f [https://github.com/Dynatrace/dynatrace-operator/releases/download/v1.3.0/kubernetes.yaml](https://github.com/Dynatrace/dynatrace-operator/releases/download/v1.3.0/kubernetes.yaml)

BR,

Peter.

---

<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 28, 2024, 3:12pm UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/3 "2024-09-28T15:12:04Z")

</div>

Hi [@Theodore\_x86](https://community.dynatrace.com/user/50066)&nbsp;,

You can disable auto-updates in dynakube on this way:&nbsp;[Configure auto-update for Dynatrace Operator managed components — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/auto-update-operator-components#configuration-in-dynakube)

Hope it helps.

Regards,

Elena

---

<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:** [September 30, 2024, 9:50am UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/4 "2024-09-30T09:50:35Z")

</div>

Thank you [@erh\_inetum](https://community.dynatrace.com/user/40722) and [@Peter\_Youssef](https://community.dynatrace.com/user/51369)&nbsp; for your replies.

My question is if the " **autoUpdate"** field stops the updates or just controlls the restart of the pods, after the update has taken place. This is crucial for our infrastructure;we need to control the version of Dynatrace components installed.

Thanks!

---

<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 30, 2024, 9:58am UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/5 "2024-09-30T09:58:58Z")

</div>

Hi Theodore,

Welcome.

“autoUpdate”&nbsp;controls whether Dynatrace Operator restarts the OneAgent pods.

Regards,

Elena.

---

<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:** [September 30, 2024, 10:02am UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/6 "2024-09-30T10:02:25Z")

</div>

So basically Updates are not suppressed! The updated version will be downloaded either way.

This is a problem…

---

<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:** [September 30, 2024, 10:51am UTC](https://community.dynatrace.com/t/disable-oneagent-automatic-update-on-kubernetes-cluster/48029/7 "2024-09-30T10:51:16Z")

</div>

Actually Documentation does not explain how to perform the following:

> **[Configure auto-update for Dynatrace Operator managed components](https://docs.dynatrace.com/managed/ingest-from/setup-on-k8s/guides/deployment-and-configuration/updates-and-maintenance/auto-update-components)**
>
> Configure auto-updates for all components managed by Dynatrace Operator

For Activegate there is a feature flag but I cannot find anything relevant for OneAgent.

BR
