Auto-update for Dynatrace Operator

Dynatrace Operator manages and auto-updates the components it deploys. To achieve a similar effect for Dynatrace Operator itself, we recommend using GitOps and open-source tools.

  • Keep the Dynatrace Operator configuration in a Git repository.
  • Use ArgoCD to deploy the configuration from the Git repository into the Kubernetes environment.
  • Implement Renovate to automatically update the Git repository with the latest Dynatrace Operator configurations.

Automated update workflow

The workflow outlined below is a direct result of the recommended setup, ensuring that Dynatrace Operator is automatically kept up to date in your Kubernetes environment.

  1. ArgoCD deploys the configuration from the Git repository into the Kubernetes environment.
  2. Renovate detects a new release of Dynatrace Operator and updates the version in the Git repository.
  3. ArgoCD notices the change in the Git repository and updates Dynatrace Operator in the Kubernetes environment accordingly.

Deploy with ArgoCD

Argo offers a suite of open-source tools for Kubernetes app deployment and management. ArgoCD, a continuous delivery tool, is used to keep the Dynatrace Operator configuration in sync with the Kubernetes cluster.

After you set up ArgoCD in your cluster, create an ApplicationSet YAML that specifies the source Helm chart for Dynatrace Operator, the version you want to deploy, and the target environment for the deployment.

# For exact syntax refer to the official ArgoCD documentation
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: dynatrace-operator
spec:
generators:
...
template:
...
spec:
...
source:
repoURL: https://raw.githubusercontent.com/Dynatrace/dynatrace-operator/main/config/helm/repos/stable
chart: dynatrace-operator
targetRevision: <version>

Automate updates with Renovate

Renovate automates the updating of dependencies in Git repositories. Integrating Renovate into your workflow ensures that the Dynatrace Operator version specified in your ApplicationSet is always up to date. Use the Renovate guide for instructions on updating ArgoCD configurations.