Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including namespaces. For the 'Delete' operation on the 'Namespaces' resource, it deletes a specified namespace within a Kubernetes cluster. This is useful for automating cluster management tasks such as cleaning up unused namespaces or managing resource lifecycles.

Use Case Examples

  1. Deleting a namespace named 'test-namespace' to clean up resources after a project completion.
  2. Automating namespace deletion as part of a CI/CD pipeline to ensure environments are reset.

Properties

Name Meaning
Namespace The Kubernetes namespace in which the operation is performed. Defaults to 'default' if not specified.
Resource Name The name of the specific resource (e.g., namespace) to operate on, such as the name of the namespace to delete.

Output

JSON

  • stdout - Output from the Kubernetes operation, such as confirmation or details of the deletion process.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and valid; missing or invalid credentials will cause the node to throw a 'No credentials got returned!' error.
  • The 'Resource Name' must be provided and valid; otherwise, the deletion operation will fail.
  • The node expects the 'Namespace' parameter to be set correctly; if omitted, it defaults to 'default', which may not be the intended target namespace.

Discussion