Kubernetes icon

Kubernetes

Interact with Kubernetes

Jobs → Exec

AI-generated

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including Jobs. For the 'exec' operation on Jobs, it allows executing commands inside a pod associated with a Job. This is useful for running commands or scripts within the context of a Kubernetes Job pod, such as debugging or managing job execution. Practical examples include running diagnostic commands inside a Job pod or executing custom scripts as part of job management.

Use Case Examples

  1. Executing a shell command inside a Kubernetes Job pod to check its status or logs.
  2. Running a custom script inside a Job pod to modify its behavior or environment during execution.

Properties

Name Meaning
Image The container image to use for operations like running or executing commands inside a pod.
Namespace The Kubernetes namespace where the Job resource is located.
Resource Name The name of the specific Job resource to target for the operation.

Output

JSON

  • stdout - The standard output resulting from executing the command inside the Job pod.

Dependencies

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

Troubleshooting

  • If no credentials are provided or returned, the node will throw an error indicating missing credentials. Ensure Kubernetes API credentials are correctly configured.
  • The 'command' input must be a valid JSON array; otherwise, an error will be thrown. Verify the command format before execution.

Discussion