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 various Kubernetes resources. Specifically, for the ReplicaSets resource with the 'Run' operation, it runs a pod using a specified container image and command within a given namespace, then retrieves the output from the pod's execution. This is useful for running containerized tasks or scripts dynamically in a Kubernetes environment and capturing their output for further workflow processing.
Use Case Examples
- Running a pod with a specific container image and command in a Kubernetes ReplicaSet to execute a batch job or script and capture its output.
- Automating deployment tasks by running commands inside a pod created on-the-fly in a specified namespace.
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 (ReplicaSet) to target. |
Output
JSON
stdout- The standard output from the executed pod command.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are returned, the node throws an error indicating missing Kubernetes API credentials. Ensure credentials are properly configured.
- If the 'Command' input is not a valid JSON array, the node throws an error. Verify that the command is correctly formatted as a JSON array.
- Errors may occur if the specified image is invalid or the pod fails to start. Check the image name and Kubernetes cluster status.