Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting operations like running pods, deleting resources, executing commands, listing resources, and more. For the 'Jobs' resource with the 'List' operation, it retrieves and lists Kubernetes jobs within a specified namespace. This node is useful for automating Kubernetes management tasks such as monitoring job statuses, managing workloads, and integrating Kubernetes operations into workflows.

Use Case Examples

  1. Listing all Kubernetes jobs in the 'default' namespace to monitor batch processing tasks.
  2. Automating the retrieval of job statuses in a CI/CD pipeline to trigger subsequent steps based on job completion.

Properties

Name Meaning
Namespace The Kubernetes namespace in which the jobs are listed. Defaults to 'default' if not specified.
Resource Name The specific name of the Kubernetes job resource to target, if applicable. Optional for listing all jobs in the namespace.

Output

JSON

  • jobs - An array of Kubernetes job objects retrieved from the specified namespace.

Dependencies

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

Troubleshooting

  • Ensure that valid Kubernetes credentials are provided; otherwise, the node will throw a 'No credentials got returned!' error.
  • The 'Namespace' must be correctly specified; if the namespace does not exist or is misspelled, the node may return an empty list or an error from the Kubernetes API.
  • If the 'Resource Name' is specified for listing, ensure it matches an existing job name; otherwise, the node may not return any results.

Links

Discussion