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 with a specified container image and command. It is useful for automating the execution of containerized applications within a Kubernetes cluster. For example, you can use it to start a pod running a specific Docker image with a custom command in a given namespace.
Use Case Examples
- Run a pod with the 'nginx' image and no command in the 'default' namespace.
- Run a pod with a custom image and a command array to execute a script inside the container.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to use for the pod. |
| Command | The command to run 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 (pod) to operate on. |
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
- If the 'Command' property is not a valid JSON array, the node will throw an error 'Command must be an array!'. Ensure the command is correctly formatted as a JSON array.
- If no Kubernetes credentials are provided or returned, the node will throw 'No credentials got returned!'. Verify that the Kubernetes API credentials are correctly configured and accessible.