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 StatefulSets. For the 'Delete' operation on StatefulSets, it deletes a specified StatefulSet resource within a given namespace. This node is useful for automating Kubernetes resource management tasks such as deleting StatefulSets programmatically as part of CI/CD pipelines or cluster maintenance workflows.
Use Case Examples
- Deleting a StatefulSet named 'my-statefulset' in the 'default' namespace to clean up resources after an application is no longer needed.
- Automating the deletion of StatefulSets in a specific namespace as part of a cluster scaling or upgrade process.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the StatefulSet resource resides. Defaults to 'default' if not specified. |
| Resource Name | The name of the StatefulSet resource to delete within the specified namespace. |
Output
JSON
status- The status or result of the delete operation returned from the Kubernetes API.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or credentials are 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 StatefulSet does not exist, the Kubernetes API may return an error indicating the resource was not found. Verify the resource name and namespace are correct.
- The node expects the 'command' parameter to be an array for certain operations; providing invalid JSON or non-array commands will cause errors.
Links
- Kubernetes StatefulSets Documentation - Official Kubernetes documentation explaining StatefulSets and their management.
- Kubernetes API Reference for Deleting StatefulSets - Details on the Kubernetes API endpoint used to delete StatefulSets.