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 clusters, specifically supporting operations on various Kubernetes resources including StatefulSets. The 'Exec' operation allows executing commands inside a container of a specified Kubernetes resource, such as a StatefulSet pod. This is useful for running diagnostic commands, debugging, or managing applications running inside Kubernetes pods. For example, a user can execute shell commands inside a StatefulSet pod to inspect logs or modify runtime behavior without redeploying the pod.
Use Case Examples
- Executing a shell command inside a StatefulSet pod to check application status.
- Running a diagnostic command inside a container of a StatefulSet to troubleshoot issues.
Properties
| Name | Meaning |
|---|---|
| Image | The container image to use when running or restarting a pod, or when executing commands inside a pod. |
| Namespace | The Kubernetes namespace where the StatefulSet resource resides. |
| Resource Name | The name of the specific StatefulSet resource to target for the operation. |
Output
JSON
stdout- The standard output from the executed command inside the Kubernetes pod.
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' parameter is not an array, the node throws an error. The command must be provided as a JSON array.
- Errors may occur if the specified namespace or resource name does not exist or is inaccessible. Verify the namespace and resource name are correct and accessible with the provided credentials.