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 run a pod within a specified namespace. It allows users to specify a container image and a command to execute inside the pod. The node then runs the pod and retrieves the output from the command execution. This is useful for automating containerized tasks, testing container images, or running batch jobs in Kubernetes environments.
Use Case Examples
- Running a pod with a specific container image and command to perform a task and capture its output.
- Automating deployment scripts by running commands inside Kubernetes pods.
- Testing container images by running commands and checking their output within a Kubernetes cluster.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to use for running the pod. |
| Command | The command to execute inside the pod, provided as a JSON array. |
| Namespace | The Kubernetes namespace where the pod will be run. |
| Resource Name | The name of the Kubernetes resource (pod) to target or create. |
Output
JSON
stdout- The standard output from the command executed inside the pod.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure that the Kubernetes credentials are correctly configured and accessible; otherwise, the node will throw a 'No credentials got returned!' error.
- The 'Command' property must be a valid JSON array; if not, the node throws a 'Command must be an array!' error.
- Verify that the specified namespace exists in the Kubernetes cluster to avoid namespace-related errors.