Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including CronJobs. For the 'delete' operation on CronJobs, it deletes a specified CronJob resource within a given namespace. This is useful for automating Kubernetes resource management tasks such as cleaning up scheduled jobs that are no longer needed.

Use Case Examples

  1. Deleting a CronJob named 'backup-job' in the 'default' namespace to stop scheduled backups.
  2. Automating cleanup of old or unused CronJobs in a CI/CD pipeline.

Properties

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

Output

JSON

  • status - The status or result of the delete operation, typically confirming 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 is not provided or incorrect, the delete operation will fail. Verify the resource name is correct and exists in the specified namespace.
  • Namespace defaults to 'default' if not specified, but if the resource is in a different namespace, specify it correctly to avoid resource not found errors.

Discussion