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 various operations on Kubernetes resources, specifically supporting operations like running jobs, fetching logs, deleting resources, and more. For the 'Logs' operation on 'Jobs', it retrieves the logs of a specified job within a given namespace. This is useful for monitoring job execution, debugging, and auditing job outputs in Kubernetes environments.
Use Case Examples
- Fetching logs of a specific Kubernetes job to monitor its execution output.
- Deleting a Kubernetes job after completion or failure.
- Running a new job with a specified container image and command.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the job resource is located. |
| Resource Name | The name of the specific job resource to operate on. |
Output
JSON
logs- The logs output of the specified Kubernetes job.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
- If the 'command' parameter is not an array when running a job, an error 'Command must be an array!' is thrown. Provide the command as a JSON array.
- Ensure the specified namespace and resource name exist in the Kubernetes cluster to avoid resource not found errors.
Links
- Kubernetes Jobs Documentation - Official Kubernetes documentation on Jobs, explaining their purpose and usage.
- Kubernetes Logs Documentation - Guide on how to retrieve logs from Kubernetes resources, useful for understanding the logs operation.