Kubernetes icon

Kubernetes

Interact with Kubernetes

Jobs → Delete

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the 'Jobs' resource with the 'Delete' operation, it deletes a specified Kubernetes Job within a given namespace. This is useful for automating the cleanup or management of batch jobs in Kubernetes environments. For example, it can be used to programmatically delete completed or failed jobs to free up cluster resources.

Use Case Examples

  1. Deleting a Kubernetes Job named 'example-job' in the 'default' namespace to clean up completed batch processes.
  2. Automating job lifecycle management by deleting jobs after their execution is no longer needed.

Properties

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

Output

JSON

  • json - The JSON response from the Kubernetes API after attempting to delete the specified Job resource. This typically includes status information about the deletion operation.

Dependencies

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

Troubleshooting

  • Common issues include missing or incorrect Kubernetes credentials, which will cause authentication failures.
  • If the specified Job resource name is not provided or incorrect, the node will throw an error indicating that the resource name is required.
  • Network connectivity issues to the Kubernetes API server can cause operation failures.
  • Error messages related to permissions may indicate that the provided credentials do not have sufficient rights to delete the Job resource.

Links

Discussion