Overview
This node interacts with a Kubernetes cluster to run a pod with a specified container image and command. It is useful for executing containerized tasks or scripts within a Kubernetes environment, such as running batch jobs, testing container images, or automating Kubernetes workflows.
Use Case Examples
- Run a pod with a specific Docker image and command to perform a data processing task.
- Execute a containerized script in a Kubernetes namespace for automation purposes.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to run inside the Kubernetes pod. |
| Command | The command to execute inside the container, provided as a JSON array of strings. |
| Namespace | The Kubernetes namespace where the pod will be run. |
Output
JSON
stdout- The standard output from the executed pod's command.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure Kubernetes credentials are correctly configured; missing credentials will cause an error 'No credentials got returned!'.
- The 'Command' property must be a valid JSON array; otherwise, the node throws 'Command must be an array!' error.
- Verify the specified namespace exists in the Kubernetes cluster to avoid pod creation failures.