Read below how to update OneAgent on Kubernetes.
OneAgent Operator automatically takes care of the lifecycle of the deployed OneAgents, so you don't need to update OneAgent pods yourself.
Update OneAgent Operator
Please review the release notes of the Operator for any breaking changes of the custom resource. If the custom resource of the new version is compatible with the already deployed one, you can simply set the OneAgent Operator image to the new tagged version. Be sure to replace
vX.Y.Z with the new version in the following command.
$ kubectl -n dynatrace set image deployment dynatrace-oneagent-operator *=quay.io/dynatrace/dynatrace-oneagent-operator:vX.Y.Z
Whenever a new version of OneAgent becomes available in Dynatrace, you can re-deploy OneAgent as explained in the steps below. The
dynatrace-oneagent container will automatically fetch the latest version of Dynatrace OneAgent.
If you've specified a default OneAgent installation version for new hosts and applications in your OneAgent updates settings, the
dynatrace-oneagent container will automatically fetch the defined default version of OneAgent.
$ kubectl delete ds/dynatrace-oneagent
Deploy Dynatrace OneAgent using the
dynatrace-oneagent.yml DaemonSet file. Be sure to replace
REPLACE_WITH_YOUR_URL with the Dynatrace OneAgent installer URL.
$ kubectl create -f dynatrace-oneagent.yml --namespace=kube-system daemonset "dynatrace-oneagent" created