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 focusing on Pods for the 'list' operation. It allows users to list Pods within a specified namespace, which is useful for monitoring and managing containerized applications running in Kubernetes. For example, a user can list all Pods in the 'default' namespace to check their status or retrieve metadata.
Use Case Examples
- List all Pods in the 'default' namespace to monitor running containers.
- Retrieve a list of Pods in a specific namespace to manage application deployments.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace in which to list the Pods. Defaults to 'default' if not specified. |
| Resource Name | The name of the specific resource (Pod) to target, if applicable. For listing, this may be left empty to list all Pods in the namespace. |
Output
JSON
metadata- Metadata about the Pod, such as name, namespace, labels, and annotations.status- Current status of the Pod, including phase, conditions, and container statuses.spec- Specification of the Pod, including containers, volumes, and other configuration details.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw an error 'No credentials got returned!'.
- Verify that the namespace specified exists in the Kubernetes cluster to avoid errors or empty results.
- For the 'command' property in other operations like 'run', ensure it is a valid JSON array; otherwise, an error 'Command must be an array!' will be thrown.