Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including Pods. For the 'Delete' operation on Pods, it deletes a specified Pod within a given namespace. This is useful for automating Kubernetes resource management tasks such as cleaning up unused or problematic Pods. For example, it can be used in workflows to automatically delete Pods based on certain conditions or schedules.
Use Case Examples
- Deleting a Pod named 'my-pod' in the 'default' namespace to free up resources or reset the application state.
- Automating cleanup of Pods after a job completes or fails.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the Pod resides. Defaults to 'default' if not specified. |
| Resource Name | The name of the Pod resource to delete. |
Output
JSON
stdout- Output from the Kubernetes API or command execution related to the Pod deletion operation.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or the credentials are invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
- If the 'command' parameter is expected to be an array but is not, an error 'Command must be an array!' is thrown. This is relevant for other operations like 'run' but not directly for 'delete'.
- Ensure the 'namespace' and 'resourceName' parameters are correctly set to target the intended Pod for deletion.