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, restarting resources, executing commands, and more. Specifically, for the 'Restart' operation, it allows restarting a Kubernetes resource within a specified namespace. This node is useful for automating Kubernetes management tasks, such as restarting pods or deployments to apply updates or recover from errors.
Use Case Examples
- Restart a pod in a specific namespace to refresh its state.
- Automate the restart of deployments after configuration changes.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to use when running or restarting a pod. |
| Namespace | The Kubernetes namespace where the resource is located. |
| Resource Name | The name of the Kubernetes resource to operate on. |
Output
JSON
stdout- The standard output from running or restarting the pod, containing the result of the operation.
Dependencies
- Requires Kubernetes API credentials for authentication and access to the cluster.
Troubleshooting
- Ensure Kubernetes credentials are correctly configured; missing credentials will cause the node to throw a 'No credentials got returned!' error.
- The 'command' property must be a valid JSON array when running pods; otherwise, an error 'Command must be an array!' will be thrown.
- Verify that the specified namespace and resource name exist in the Kubernetes cluster to avoid operation failures.