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 DaemonSets, specifically the 'Run' operation in this context. It allows users to run a pod with a specified container image and command within a given namespace. This is useful for executing containerized tasks or scripts dynamically in a Kubernetes cluster without predefining pods. For example, running a diagnostic tool or a one-off job inside a Kubernetes environment.
Use Case Examples
- Run a pod in the 'default' namespace using the 'nginx' image with a custom command to test connectivity.
- Execute a containerized script in a specific namespace to perform maintenance tasks on cluster resources.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to run inside the pod. |
| Command | The command array to execute inside the container. |
| Namespace | The Kubernetes namespace where the pod will be run. |
| Resource Name | The name of the DaemonSet resource (or other resource) to target. |
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 cluster.
Troubleshooting
- If no credentials are provided or invalid, the node throws 'No credentials got returned!' error. Ensure valid Kubernetes API credentials are configured.
- If the 'Command' input is not a valid JSON array, the node throws 'Command must be an array!' error. Provide the command as a JSON array, e.g., ["/bin/sh", "-c", "echo hello"].