Get started with Kubernetes Automation

Preview release

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.

Learn how to list Kubernetes pods with Kubernetes Automation Kubernetes connector. You will create a workflow using a single Kubernetes Automation action and then run it.

Prerequisites

  • Have a basic knowledge of Dynatrace Workflows. For more information, see Workflows quick start.

  • Familiarize yourself with Kubernetes Automation.

  • Verify that you have Set up Kubernetes Automation.

  • Verify that the Service Account used by EdgeConnect is allowed to list Kubernetes pods in your namespace. Check this with

    kubectl auth can-i list pods --as=system:serviceaccount:dynatrace:<serviceaccountname> -n <namespace>
  • Verify that you have all the permissions needed to run Kubernetes tasks.

Steps

Create a workflow to list Kubernetes Pods with a single List resources action.

Use Workflows with Kubernetes Automation

  1. Go to Workflows Workflows and select Add Workflow.

  2. In the Select a trigger panel, select one of the available triggers.

  3. On the trigger node, select Add Add task to browse available actions.

  4. In the Choose action panel, either search for kubernetes or scroll to the Kubernetes Automation section.

    Find Kubernetes Automations for Workflows actions

  5. Select the List resources action.

  6. Select a Connection.

    Select Kubernetes connection.

  7. Enter the Namespace you want to list the resources from.

    Select Kubernetes namespace.

  8. Choose a Resource type.

    Select Kubernetes resource type.

  9. Select pods to list the pods for this Namespace.

  10. optional Enter the Field selector.

  11. optional Enter the Label selector.

  12. Select Run.

  13. Select the Result tab of the executed List resources action and check what pods are running in your namespace.