Kubernetes Automation is currently in Preview release and only accessible to selected customers. If you would like to share feedback or ideas, join the preview by signing up via this form or contacting your Customer Success Manager.
For more information, see
After you join the preview program for Kubernetes Automation, we'll provide Hub subscription details. With those subscription details, you can activate the capability by following these steps.
This guide provides detailed steps for provisioning EdgeConnect for Kubernetes Automation using the Dynatrace Operator.
Create a new OAuth client the Dynatrace Operator uses
app-engine:edge-connects:connect
app-engine:edge-connects:write
app-engine:edge-connects:read
app-engine:edge-connects:delete
oauth2:clients:manage
settings:objects:read
settings:objects:write
Store the newly created OAuth client as a Kubernetes secret
Create a secret with the OAuth credentials.
apiVersion: v1kind: Secretmetadata:name: edgeconnect-oauthnamespace: dynatracestringData:oauth-client-id: <client id>oauth-client-secret: <client secret>
Apply the secret.
kubectl apply -f edgeconnect-oauth-secret.yaml
You need to configure and deploy EdgeConnect via the Dynatrace Operator. The Dynatrace Operator prepares EdgeConnect for Kubernetes Automation and configures the required connection in your Dynatrace tenant.
Configure the EdgeConnect custom resource file with serviceAccountName
(using the ServiceAccount deployed here), provisioner: true
, and kubernetesAutomation.enabled: true
properties.
apiVersion: dynatrace.com/v1alpha2kind: EdgeConnectmetadata:name: edgeconnect-deployment-rollout-restarternamespace: dynatracespec:apiServer: "<environment-id>.apps.dynatrace.com"serviceAccountName: edgeconnect-deployment-rollout-restarteroauth:provisioner: trueclientSecret: edgeconnect-oauthendpoint: https://sso.dynatrace.com/sso/oauth2/tokenresource: urn:dtenvironment:<tenant>kubernetesAutomation:enabled: true
Apply the EdgeConnect custom resource.
kubectl apply -f edgeconnect.yaml
Rotating the OAuth credentials is not immediately reflected in the EdgeConnect deployment. This may lead to authentication issues until the Dynatrace Operator reconciles the EdgeConnect deployment.