Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with a Kubernetes cluster to perform various operations such as running pods, deleting resources, getting resource details, listing resources, fetching logs, executing commands, patching resources, scaling, restarting, and port forwarding. It is useful for automating Kubernetes management tasks within workflows, such as deploying applications, managing pods, or retrieving logs for monitoring.
Use Case Examples
- Run a pod with a specific image and command in a given namespace and retrieve its output.
- Get details of a specific Kubernetes resource like a pod or deployment by name and namespace.
- Delete a Kubernetes resource such as a pod or service by specifying its name and namespace.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the operation will be performed. Defaults to 'default' if not specified. |
| Resource Name | The name of the specific Kubernetes resource to operate on, such as a pod or deployment. Required for operations targeting a specific resource. |
Output
JSON
stdout- Output from running a pod, typically the standard output of the executed command.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or returned, the node will throw an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
- When running a pod, the 'command' parameter must be a valid JSON array; otherwise, an error 'Command must be an array!' will be thrown. Verify the command input format.
- Operations require specifying the correct resource name and namespace; missing or incorrect values may cause failures or unexpected results.