Kubernetes icon

Kubernetes

Interact with Kubernetes

Pods → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically here focusing on listing Pods. It is useful for scenarios where you need to retrieve and manage Kubernetes resources programmatically within an automation workflow. For example, you can list all Pods in a specific namespace to monitor their status or gather information for further processing.

Use Case Examples

  1. List all Pods in the 'default' namespace to monitor running containers.
  2. Retrieve Pods from a custom namespace to analyze resource usage or troubleshoot issues.

Properties

Name Meaning
Namespace The Kubernetes namespace from which to list Pods. Defaults to 'default' if not specified.
Resource Name The specific resource name, if filtering or targeting a particular resource is needed. Optional for listing Pods.

Output

JSON

  • json - The JSON output contains the list of Pods or other Kubernetes resources retrieved from the specified namespace.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.

Troubleshooting

  • Common issues include missing or invalid Kubernetes credentials, which will cause authentication failures.
  • If the namespace does not exist or is misspelled, the node will fail to retrieve resources.
  • Providing an invalid resource name when required will result in an error indicating the resource name is necessary.

Links

Discussion