Kubernetes icon

Kubernetes

Interact with Kubernetes

Jobs → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the 'Jobs' resource with the 'List' operation, it retrieves a list of Kubernetes jobs within a specified namespace. This is useful for monitoring and managing batch jobs running in a Kubernetes environment. For example, users can list all jobs in the 'default' namespace to check their status or manage job workloads programmatically.

Use Case Examples

  1. List all Kubernetes jobs in the 'default' namespace to monitor batch processing tasks.
  2. Retrieve jobs from a specific namespace to integrate job status into an automation workflow.

Properties

Name Meaning
Namespace The Kubernetes namespace to operate in, defaulting to 'default' if not specified.
Resource Name The specific name of the Kubernetes resource (job) to target, optional for listing operations.

Output

JSON

  • json - The JSON output contains the list of Kubernetes jobs or other relevant data returned by the Kubernetes API for the requested operation.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw an error.
  • For 'List' operation, the namespace must be valid and accessible; otherwise, the node may return an empty list or an error.
  • If the resource name is required for other operations but missing, the node throws an error indicating the missing resource name.

Links

Discussion