cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable OneAgent Automatic Update on kubernetes cluster

Theodore_x86
Helper

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.

6 REPLIES 6

Peter_Youssef
Champion

Hi @Theodore_x86 

  • 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: kubectl -n dynatrace rollout restart daemonset/<DYNAKUBE>-oneagent
  • OpenShift: oc -n dynatrace rollout restart daemonset/<DYNAKUBE>-oneagent
  • to update ActiveGates Pods: 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 : classicFullStack, applicationMonitoring, and host monitoring

execute the attached command kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v1.3.0/kubernetes.yaml

BR,

Peter.

Hi @Theodore_x86 ,

You can disable auto-updates in dynakube on this way: https://docs.dynatrace.com/docs/shortlink/auto-update-operator-components#configuration-in-dynakube

 

Hope it helps.

Regards,

Elena

Theodore_x86
Helper

Thank you @erh_inetum and @Peter_Youssef  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!

Hi Theodore,

Welcome.

"autoUpdate" controls whether Dynatrace Operator restarts the OneAgent pods.

Regards,

Elena.

Theodore_x86
Helper

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

This is a problem....

Theodore_x86
Helper

Actually Documentation does not explain how to perform the following:

https://docs.dynatrace.com/managed/shortlink/auto-update-operator-components#configure-oneagent-auto...

 

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

BR

Featured Posts