Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including DaemonSets. For the 'Delete' operation on DaemonSets, it deletes a specified DaemonSet resource within a given namespace. This is useful for automating Kubernetes resource management tasks such as cleaning up or removing outdated DaemonSets. For example, a user can delete a DaemonSet named 'my-daemonset' in the 'default' namespace as part of a workflow to manage cluster resources.

Use Case Examples

  1. Deleting a DaemonSet named 'my-daemonset' in the 'default' namespace to remove an unwanted daemon process from the cluster.
  2. Automating cleanup of DaemonSets in a specific namespace as part of a CI/CD pipeline.

Properties

Name Meaning
Namespace The Kubernetes namespace where the DaemonSet resource exists. Defaults to 'default' if not specified.
Resource Name The name of the DaemonSet resource to delete within the specified namespace.

Output

JSON

  • status - The status or result of the delete operation, typically confirming the deletion or providing error details.

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 resource does not exist, the delete operation may fail with an error from the Kubernetes API. Verify the resource name and namespace are correct.
  • The node expects the 'command' parameter to be an array for certain operations; providing an invalid format may cause errors, but this is not directly relevant for the delete operation.

Discussion