Skip to main content

dt-operator

This currated role deploys the Dynatrace Operator to monitor your Kubernetes cluster. Dynatrace provides different deployment options: cloudNativeFullStack, applicationMonitoring, classicFullStack (deprecated). Notice that the prerequisites for each are different

  1. Install k3s
- include_role:
name: k3s
  1. Deploy Operator in cloudNativeFullStack
- include_role:
name: dt-operator
vars:
operator_mode: "cloudNativeFullStack"
dt_operator_release: "v1.7.2"
host_group: k8s_multi_prod
cluster_name: ace-box

Destroy

Destroy your Operator with

- include_role:
name: dt-operator
tasks_from: destroy

Note: match the destroy with the operator release that has been deployed

Other Modes

Deploy applicationMonitoring

  1. Install k3s
- include_role:
name: k3s
  1. Deploy Operator in applicationMonitoring
- include_role:
name: dt-operator
vars:
operator_mode: "applicationMonitoring"
dt_operator_release: "v1.7.2"
host_group: k8s_multi_prod
cluster_name: ace-box

(DEPRECATED) Deploy classicFullStack

  1. Install microk8s
- include_role:
name: microk8s
  1. Deploy classic Operator
- include_role:
name: dt-operator
vars:
operator_mode: "classicFullStack"
dt_operator_release: "v1.2.2"

Other Tasks in the Role

"source-secrets" retrieves the Operator bearer token and stores it in the following variable:

  • dt_operator_kube_bearer_token
- include_role:
name: dt-operator
tasks_from: source-secrets