Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes to run a Job by creating a pod with a specified container image and command. It is useful for automating Kubernetes job executions within workflows, such as running batch jobs or scripts inside a Kubernetes cluster.

Use Case Examples

  1. Run a Kubernetes Job with a specific container image and command to process data.
  2. Automate deployment tasks by running custom commands inside a Kubernetes pod.

Properties

Name Meaning
Image The container image to use for the Kubernetes pod running the job.
Command The command to execute inside the container, provided as a JSON array.
Namespace The Kubernetes namespace where the job pod will be created.
Resource Name The name of the Kubernetes resource (job) to run.

Output

JSON

  • stdout - The standard output from the executed pod running the job.

Dependencies

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

Troubleshooting

  • Error 'No credentials got returned!' indicates missing or invalid Kubernetes API credentials; ensure credentials are properly configured.
  • Error 'Command must be an array!' occurs if the command input is not a valid JSON array; provide the command as a JSON array.

Discussion