# Set a certain ActiveGate/OneAgent image version in the Dynatrace Operator

**URL:** <https://community.dynatrace.com/t/set-a-certain-activegate-oneagent-image-version-in-the-dynatrace-operator/37316>\
**Category:** Troubleshooting\
**Tags:** activegate, kubernetes\
**Created:** [April 11, 2023, 2:15pm UTC](https://community.dynatrace.com/t/set-a-certain-activegate-oneagent-image-version-in-the-dynatrace-operator/37316 "2023-04-11T14:15:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filip-Rus](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@Filip-Rus](https://community.dynatrace.com/u/Filip-Rus)\
**Post date:** [April 11, 2023, 2:15pm UTC](https://community.dynatrace.com/t/set-a-certain-activegate-oneagent-image-version-in-the-dynatrace-operator/37316/1 "2023-04-11T14:15:41Z")

</div>

## Question

How can I control the version of the ActiveGate/OneAgent that’s runnning as a pod inside the Dynatrace Operator? I would like to avoid auto-updates.

## Answer

You would need to find the custom resource YAML file that you have applied when you set-up the Kubernetes monitoring and the Activegate version that you want to use.

Edit the YAML file using your editor of choice, navigate to this section and uncomment the image line, replace&nbsp;ENVIRONMENTID with your actual environment id and replace also&nbsp; the “latest” with the version you want to have. The structure is “1.majorVersion.minorVersion”

# Optional: Sets the image used to deploy ActiveGate instances  
# Defaults to the latest ActiveGate image on the tenant’s registry  
# Example: “[ENVIRONMENTID.live.dynatrace.com/linux/activegate:latest](http://ENVIRONMENTID.live.dynatrace.com/linux/activegate:latest)”  
#  
image: “[demoTenant.live.dynatrace.com/linux/activegate:1.253.234](http://demoTenant.live.dynatrace.com/linux/activegate:1.253.234)”

oneAgent:  
# Enables classic fullstack monitoring and changes its settings  
# Cannot be used in conjunction with cloud-native fullstack monitoring, application-only monitoring or host monitoring  
#  
classicFullStack:  
# Optional: If specified, indicates the OneAgent version to use  
# Defaults to “latest”  
# The version is expected to be provided in the semver format  
# Example: {major.minor.release}, e.g., “1.200.0”  
#  
# version:

# Optional: Sets the URI for the image containing the OneAgent installer used by the DaemonSet  
# Defaults to the latest OneAgent image on the tenant’s registry  
#  
image: “[demoTenant.live.dynatrace.com/linux/oneagent:1.253.234](http://demoTenant.live.dynatrace.com/linux/oneagent:1.253.234)”:

Save the edits you have made and while being logged to your Kubernetes environment, run this command

kubectl apply -f \<yourCustomResourceFile.yaml\>

Same applies for Openshift, just the command differs:

oc apply -f \<yourCustomResourceFile.yaml\>

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 12, 2023, 7:00pm UTC](https://community.dynatrace.com/t/set-a-certain-activegate-oneagent-image-version-in-the-dynatrace-operator/37316/2 "2023-05-12T19:00:07Z")

</div>

Great Write up! being able to control the Updates is critical for organizations.
