Kubernetes icon

Kubernetes

Interact with Kubernetes

CronJobs → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, the 'List' operation for the 'CronJobs' resource retrieves a list of CronJobs within a specified namespace. This node is useful for automating Kubernetes management tasks such as monitoring, scaling, or managing workloads. For example, it can be used to list all CronJobs in a namespace to monitor scheduled jobs or to integrate Kubernetes data into workflows.

Use Case Examples

  1. List all CronJobs in the 'default' namespace to monitor scheduled tasks.
  2. Retrieve CronJobs from a specific namespace to automate job management or reporting.

Properties

Name Meaning
Namespace The Kubernetes namespace from which to list CronJobs. Defaults to 'default' if not specified.
Resource Name The name of a specific resource, if filtering or targeting a particular CronJob is needed. Optional for listing all CronJobs.

Output

JSON

  • json - The JSON output contains the list of CronJobs retrieved from the specified namespace.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and valid; otherwise, the node will throw a 'No credentials got returned!' error.
  • If the 'Namespace' parameter is incorrect or does not exist, the node may return an empty list or an error from the Kubernetes API.
  • The 'Resource Name' is optional for listing but required for other operations; providing it incorrectly may cause errors.

Links

Discussion