Actions90
- Jobs Actions
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- CronJobs Actions
Overview
This node enables interaction with Kubernetes clusters by performing various operations on Kubernetes resources. Specifically, for the StatefulSets resource and the Delete operation, it deletes a specified StatefulSet within a given namespace.
Common scenarios where this node is beneficial include automating Kubernetes cluster management tasks such as cleaning up unused StatefulSets, managing application lifecycle, or integrating Kubernetes resource control into broader automation workflows.
For example, you might use this node to delete a StatefulSet named my-database in the production namespace as part of a deployment pipeline that tears down old versions of stateful applications.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the StatefulSet resides. Defaults to "default". |
| Resource Name | The name of the StatefulSet resource to delete. |
Output
The node outputs JSON data representing the result of the delete operation. This typically includes status information returned from the Kubernetes API about the deletion request, such as confirmation of deletion or error details if the resource was not found or could not be deleted.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to a Kubernetes cluster.
- Needs an API authentication token or credentials configured in n8n to access the Kubernetes API.
- The node depends on a Kubernetes client utility internally to communicate with the cluster.
Troubleshooting
No credentials got returned!
This error indicates missing or misconfigured Kubernetes credentials in n8n. Ensure that valid Kubernetes API credentials are set up and linked to the node.Resource not found or cannot be deleted
If the specified StatefulSet name does not exist in the given namespace, the Kubernetes API will return an error. Verify the resource name and namespace are correct.Permission denied errors
The API token used must have sufficient permissions to delete StatefulSets in the target namespace.Invalid input types
The node expects string inputs for namespace and resource name. Providing invalid types may cause errors.