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 updates all pods automatically when it detects updates. Note that updates may take up to 15 minutes due to Dynatrace Operator checking for updates at 15-minute intervals. Setting a custom image disables automatic updates.
Update windows do not apply in Kubernetes environments.
Dynatrace Operator version 1.10.0+
Dynatrace Operator can automatically resolve the latest public image URIs for managed components from your Dynatrace environment, without manual image field configuration.
When this feature is active, Dynatrace Operator periodically syncs the image references for each component from your Dynatrace environment and applies them automatically.
Remove the image and codeModulesImage fields from your DynaKube if set — their values take precedence over automatically resolved images for the affected component.
Set the feature.dynatrace.com/use-public-registry annotation on your DynaKube:
apiVersion: dynatrace.com/v1beta6kind: DynaKubemetadata:name: dynakubenamespace: dynatraceannotations:feature.dynatrace.com/use-public-registry: "true"spec:apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api...
When your DynaKube uses a platform token, Dynatrace Operator enables public registry resolution automatically. No annotation is required. You can set spec.publicRegistryOverride to use a specific supported public registry.
To request images from a specific supported public registry, set spec.publicRegistryOverride to one of the registry hosts listed in Supported public registries — for example, public.ecr.aws for Amazon ECR Public or registry-1.docker.io for Docker Hub. Dynatrace Operator forwards the host to your Dynatrace environment when resolving image URIs.
spec.templates field.After enabling, confirm that Dynatrace Operator is resolving images from the public registry:
kubectl get dynakube <dynakube-name> -n dynatrace -o jsonpath='{.status.activeGate.source}'
A value of public-registry confirms the ActiveGate image was resolved from the public registry. Check status.oneAgent.source and status.codeModules.source similarly for OneAgent and CodeModules.
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. Updating the OneAgent version always restarts 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: {}
To disable auto-update, set the image field in the DynaKube. Omit the field to keep auto-update enabled.
# Auto-update enabled (default) — omit imagespec:oneAgent:cloudNativeFullStack: {}# Auto-update disabled — pin a specific imagespec:oneAgent:cloudNativeFullStack:image: public.ecr.aws/dynatrace/dynatrace-oneagent:<tag>
For CodeModules, while Dynatrace Operator downloads new images, applications update only when they restart. Keep in mind that autoscaling also injects the most recent CodeModule.
The ActiveGate target version configured in Dynatrace determines the image used by Dynatrace Operator. Dynatrace Operator periodically checks for updates and applies them automatically.
Minimal DynaKube configuration that uses auto-update:
apiVersion: dynatrace.com/v1beta5kind: DynaKubemetadata:name: dynakubenamespace: dynatracespec:apiUrl: https://ENVIRONMENTID.live.dynatrace.com/apiactiveGate:capabilities:- kubernetes-monitoring
To disable auto-update, set the image field in the DynaKube. Omit the field to keep auto-update enabled.
# Auto-update enabled (default) — omit imagespec:activeGate:capabilities:- kubernetes-monitoring# Auto-update disabled — pin a specific imagespec:activeGate:capabilities:- kubernetes-monitoringimage: public.ecr.aws/dynatrace/dynatrace-activegate:<tag>
To enable or disable EdgeConnect auto-updates, set the autoUpdate field in the EdgeConnect spec to true or false.
apiVersion: dynatrace.com/v1alpha2kind: EdgeConnectmetadata:name: edgeconnectnamespace: dynatracespec:autoUpdate: false