Learn how to list Kubernetes pods with Kubernetes Connector .
You will create a workflow using a single Kubernetes Connector action and then run it.
Have a basic knowledge of Dynatrace Workflows. For more information, see Workflows quick start.
Familiarize yourself with Kubernetes Connector.
Verify that you have Set up Kubernetes Connector.
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.
Create a workflow to list Kubernetes Pods with a single List resources action.
Go to Workflows and select
Workflow.
In the Select a trigger panel, select one of the available triggers.
On the trigger node, select Add task to browse available actions.
In the Choose action panel, either search for kubernetes
or scroll to the Kubernetes Connector section.
Select the List resources action.
Select a Connection.
Enter the Namespace you want to list the resources from.
Choose a Resource type.
Select pods to list the pods for this Namespace.
optional Enter the Field selector.
optional Enter the Label selector.
Select Run.
Select the Result tab of the executed List resources action and check what pods are running in your namespace.