Migrate Dynatrace Operator to a new environment
If you're currently monitoring your Kubernetes cluster with a Dynatrace OneAgent rolled out through the Dynatrace Operator and you need to migrate to a different Dynatrace environment, select one of the following options, based on your deployment method.
-
Delete the existing secret that holds the API and PaaS tokens for authenticating to the Dynatrace Cluster.
kubectl delete secret dynakube -n dynatrace
-
Create a new secret based on new tokens from your new environment.
-
Override the old
apiUrl
in the custom resource file with the new one.kubectl edit dynakube dynakube -n dynatrace
-
Restart your applications.
-
Delete the existing secret that holds the API and PaaS tokens for authenticating to the Dynatrace Cluster.
oc delete secret dynakube -n dynatrace
-
Create a new secret based on new tokens from your new environment.
-
Override the old
apiUrl
in the custom resource file with the new one.oc edit dynakube dynakube -n dynatrace
-
Restart your applications.