Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting the 'Jobs' resource with the 'Get' operation. It allows users to retrieve detailed information about a specific Kubernetes Job within a given namespace. This is useful for monitoring job status, debugging, or managing job lifecycle in automated workflows.

Use Case Examples

  1. Retrieve details of a specific Kubernetes Job by specifying its namespace and resource name to monitor job execution status.
  2. Use the node to fetch job metadata and status for integration with other systems or for logging purposes.

Properties

Name Meaning
Namespace The Kubernetes namespace where the Job resource is located. Defaults to 'default' if not specified.
Resource Name The name of the specific Job resource to retrieve information about.

Output

JSON

  • metadata - Metadata information of the Kubernetes Job, such as name, namespace, labels, and annotations.
  • spec - Specification details of the Job, including job template and execution parameters.
  • status - Current status of the Job, including conditions, completion status, and any active pods.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing or invalid credentials will cause errors.
  • Verify that the specified namespace and resource name exist in the Kubernetes cluster to avoid 'resource not found' errors.
  • The node expects the resource name to be provided; an empty or incorrect name will result in failure to retrieve the Job.

Discussion