Set up EdgeConnect

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.

Step 1 Create EdgeConnect

To create EdgeConnect, follow the instruction provided in Create a new EdgeConnect configuration.

Step 2 Create OAuth credentials secret

  1. 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: v1
    kind: Secret
    metadata:
    name: edgeconnect-oauth
    namespace: dynatrace
    data:
    oauth-client-id: <base64 encoded client id>
    oauth-client-secret: <base64 encoded client secret>
  2. Apply the secret.

    kubectl apply -f edgeconnect-oauth-secret.yaml

Step 3 Configure EdgeConnect

  1. Before applying the configuration, ensure you have all the necessary details. See the configuration fields in EdgeConnect parameters for Dynatrace Operator.

  2. 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/v1alpha2
    kind: EdgeConnect
    metadata:
    name: sample-edge-connect-name
    namespace: dynatrace
    spec:
    apiServer: "<environment-id>.apps.dynatrace.com"
    replicas: 1
    oauth:
    clientSecret: edgeconnect-oauth
    endpoint: https://sso.dynatrace.com/sso/oauth2/token
    resource: urn:dtenvironment:<tenant>
  3. Apply the EdgeConnect custom resource.

    kubectl apply -f edgeconnect.yaml

Step 4 Verify that EdgeConnect is up

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 AGE
sample-edge-connect-name <environment-id>.apps.dynatrace.com Running 16m