Kubernetes icon

Kubernetes

Interact with Kubernetes

Jobs → Run

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically supporting the 'Jobs' resource with the 'Run' operation. It allows users to run a Kubernetes job by specifying the container image, command to execute, environment variables, namespace, and resource name. This is useful for automating job execution in Kubernetes clusters, such as running batch jobs, scripts, or containerized tasks programmatically within workflows.

Use Case Examples

  1. Run a Kubernetes job with a specific container image and command to automate batch processing.
  2. Execute a job in a specified namespace with custom environment variables for configuration.

Properties

Name Meaning
Image The container image to use for the Kubernetes job.
Command The command array to run inside the container for the job.
Environment Variables Environment variables to set inside the container for the job.
Namespace The Kubernetes namespace where the job will be run.
Resource Name The name of the Kubernetes job resource.

Output

JSON

  • stdout - The standard output from running the Kubernetes job.

Dependencies

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

Troubleshooting

  • Ensure the 'Command' and 'Environment Variables' inputs are valid JSON arrays; otherwise, the node will throw an error.
  • The 'Resource Name' must be provided for the run operation; missing this will cause an error.
  • Kubernetes credentials must be correctly configured and accessible; missing or invalid credentials will cause the node to fail.
  • Errors related to Kubernetes API calls (e.g., resource not found, permission denied) should be checked in the Kubernetes cluster and credentials.

Discussion