Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Deployments → List
AI-generatedOverview
This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting the 'Deployments' resource with the 'List' operation among others. It is useful for automating Kubernetes management tasks such as listing deployments, running pods, scaling resources, fetching logs, and more. For example, it can list all deployments in a specified namespace, retrieve logs from a deployment's pod, or scale a deployment to a desired number of replicas.
Use Case Examples
- List all deployments in the 'default' namespace to monitor active deployments.
- Scale a deployment to increase or decrease the number of replicas based on load.
- Fetch logs from a deployment's pod for debugging purposes.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the deployment resources are located. Defaults to 'default' if not specified. |
| Resource Name | The specific name of the deployment resource to operate on. Required for operations that target a specific deployment. |
Output
JSON
json- The JSON output contains the result of the Kubernetes operation, such as a list of deployments or details of a specific deployment.
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 the node to throw an error 'No credentials got returned!'.
- Operations that require a specific resource name (e.g., get, delete, logs, scale, patch, exec, restart, port-forward) will throw an error if the resource name is not provided.
- The 'command' and 'env' parameters for the 'run' operation must be valid JSON arrays; otherwise, an error will be thrown.
- If an unsupported operation is specified, the node will throw an error indicating the operation is not implemented.