Dynatrace Operator manages the rollout and updates of the following components in Kubernetes:
The default settings for OneAgent and ActiveGate automatically roll out updates as soon as they become available. DynaKube also defaults to update all pods when updates are detected automatically. Note that updates may take up to 15 minutes due to Dynatrace Operator checking for updates at 15-minute intervals. If you set a custom image
or version
, it will disable automatic updates.
Set the target version on the Dynatrace Server to a relative version, for example, Latest stable version
. Dynatrace Operator will periodically check for updates and propagate them to the Kubernetes environment. An update of the OneAgent version will always cause restart of the OneAgent pods.
Minimal DynaKube configuration that uses auto-update:
apiVersion: dynatrace.com/v1beta5kind: DynaKubemetadata:name: dynakubenamespace: dynatracespec:apiUrl: https://ENVIRONMENTID.live.dynatrace.com/apioneAgent:cloudNativeFullStack: {}
The update window configured in the web UI applies only to the set target version, not to Kubernetes.
If autoUpdate
is set to false
in the DynaKube, the OneAgents will not get version updates based on the target version of the Dynatrace environment after the initial deployment of the OneAgents.
We do not recommend setting autoUpdate: false
directly. To control OneAgent version updates, we recommend doing one of the following:
autoUpdate: true
and set the target version in the Dynatrace environment's web UIimage
field in the DynaKubeversion
field in the DynaKubeWhile new images are downloaded, applications are only updated when restarted. Keep in mind that autoscaling also injects the most recent CodeModule.
Similar to OneAgent, the ActiveGate update can be configured in the UI, resulting in a changed ActiveGate image, visible to Dynatrace Operator.
Dynatrace Operator can be configured to disable auto-updates by setting the autoUpdate
field in the EdgeConnect spec section to false
.
apiVersion: dynatrace.com/v1alpha2kind: EdgeConnectmetadata:name: edgeconnectnamespace: dynatracespec:autoUpdate: false