Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
StatefulSets → Delete
AI-generatedOverview
This node interacts with Kubernetes to perform various operations on Kubernetes resources. Specifically, for the StatefulSets resource with the Delete operation, it deletes a specified StatefulSet in a given namespace. This is useful for automating the management and cleanup of StatefulSets in Kubernetes clusters, such as removing outdated or unnecessary StatefulSets programmatically.
Use Case Examples
- Deleting a StatefulSet named 'my-statefulset' in the 'default' namespace to free up resources.
- Automating the deletion of StatefulSets as part of a CI/CD pipeline when rolling out new versions of an application.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the StatefulSet resource exists. Defaults to 'default' if not specified. |
| Resource Name | The name of the StatefulSet resource to delete. |
Output
JSON
json- The JSON response from Kubernetes after attempting to delete the StatefulSet resource, typically containing status or confirmation details.
Dependencies
- Requires Kubernetes API credentials to authenticate and authorize operations on the Kubernetes cluster.
Troubleshooting
- Common issues include missing or incorrect Kubernetes credentials, which will cause authentication failures.
- If the resource name is not provided, the node throws an error indicating that the resource name is required for the delete operation.
- Errors from the Kubernetes API, such as trying to delete a non-existent StatefulSet, will be propagated and should be handled accordingly.
Links
- Kubernetes StatefulSets - Official Kubernetes documentation on StatefulSets, explaining their purpose and usage.
- Kubernetes API Reference for Deleting StatefulSets - Details on the Kubernetes API endpoint used to delete StatefulSets.