Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Pods → List
AI-generatedOverview
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
- List all Pods in the 'default' namespace to monitor running containers.
- 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
- Kubernetes Pods Documentation - Official Kubernetes documentation on Pods, explaining their structure and usage.
- kubectl Command Reference - Reference for Kubernetes command-line tool, useful for understanding operations like listing Pods.