Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with Kubernetes to perform operations on Kubernetes resources. Specifically, for the 'Services' resource with the 'Run' operation, it runs a pod using a specified container image and command within a given namespace, then retrieves the output of the pod's execution. This is useful for automating containerized tasks, testing container commands, or running batch jobs in Kubernetes environments.
Use Case Examples
- Run a pod with a specific container image and command to execute a script or application inside Kubernetes.
- Automate deployment tasks by running containerized commands dynamically within a Kubernetes cluster.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to use for running the pod. |
| Command | The command to execute inside the container, provided as a JSON array. |
| Namespace | The Kubernetes namespace where the pod will be run. |
| Resource Name | The name of the Kubernetes resource to target (e.g., service name). |
Output
JSON
stdout- The standard output from running the pod with the specified image and command.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure the 'Command' input is a valid JSON array; otherwise, the node throws an error 'Command must be an array!'.
- Verify Kubernetes credentials are correctly configured; missing credentials cause 'No credentials got returned!' error.
- Make sure the specified namespace and resource name exist in the Kubernetes cluster to avoid runtime errors.