Kubernetes icon

Kubernetes

Interact with Kubernetes

StatefulSets → Delete

AI-generated

Overview

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

  1. Deleting a StatefulSet named 'my-statefulset' in the 'default' namespace to free up resources.
  2. 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

Discussion