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 like deleting resources. In the 'Delete' operation, it deletes a specified Kubernetes resource within a given namespace. This is useful for automating the management and cleanup of Kubernetes resources such as pods, services, deployments, etc. For example, it can be used to delete a pod by specifying its name and namespace, helping in scenarios like resource lifecycle management or cleanup after tests.
Use Case Examples
- Delete a pod named 'my-pod' in the 'default' namespace to free up resources.
- Automate deletion of a deployment after a certain condition is met in a CI/CD pipeline.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the resource to be deleted is located. |
| Resource Name | The name of the Kubernetes resource to delete within the specified namespace. |
Output
JSON
status- The status or result of the delete operation, typically indicating success or failure.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
- If the resource name or namespace is incorrect or the resource does not exist, the delete operation may fail. Verify the resource details before running the node.
- The node expects the 'command' parameter as an array for some operations; providing incorrect types may cause errors.