EdgeConnect facilitates secure interactions between applications, workflows, and internal systems within a Kubernetes environment. This guide provides information on how to deploy and configure EdgeConnect using Dynatrace.
To create EdgeConnect, follow the instruction provided in Create a new EdgeConnect configuration.
Create a secret to hold your OAuth credentials. The values for the OAuth client ID and secret should be obtained from the EdgeConnect configuration created in Create EdgeConnect step.
apiVersion: v1kind: Secretmetadata:name: edgeconnect-oauthnamespace: dynatracedata:oauth-client-id: <base64 encoded client id>oauth-client-secret: <base64 encoded client secret>
Apply the secret.
kubectl apply -f edgeconnect-oauth-secret.yaml
Before applying the configuration, ensure you have all the necessary details. See the configuration fields in EdgeConnect parameters for Dynatrace Operator.
Create the EdgeConnect custom resource file. Ensure the value for metadata.name
matches the name you used when creating the EdgeConnect configuration in step 1.
apiVersion: dynatrace.com/v1alpha2kind: EdgeConnectmetadata:name: sample-edge-connect-namenamespace: dynatracespec:apiServer: "<environment-id>.apps.dynatrace.com"replicas: 1oauth:clientSecret: edgeconnect-oauthendpoint: https://sso.dynatrace.com/sso/oauth2/tokenresource: urn:dtenvironment:<tenant>
Apply the EdgeConnect custom resource.
kubectl apply -f edgeconnect.yaml
After configuring EdgeConnect, use the command below to check the status of your EdgeConnect.
kubectl get edgeconnects -n dynatrace
Ensure that the status displays Running
.
NAME APISERVER STATUS AGEsample-edge-connect-name <environment-id>.apps.dynatrace.com Running 16m