Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Jobs → Logs
AI-generatedOverview
This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically focusing on the 'Jobs' resource and the 'Logs' operation in this context. It retrieves logs from a specified container within a Kubernetes Job, which is useful for monitoring and debugging job executions in a Kubernetes cluster. Practical examples include fetching logs to analyze job execution details or troubleshoot issues in batch processing jobs.
Use Case Examples
- Fetching logs from a specific container in a Kubernetes Job to monitor job progress.
- Retrieving logs to debug errors or failures in a Kubernetes Job execution.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the Job resource is located. |
| Resource Name | The name of the specific Job resource to retrieve logs from. |
| Container Name | The name of the container within the Job from which to fetch logs. |
Output
JSON
logs- The logs output from the specified container in the Kubernetes Job.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure that the Kubernetes credentials provided are valid and have sufficient permissions to access the specified namespace and Job resource.
- Verify that the resource name and container name are correctly specified; missing or incorrect names will cause errors.
- Common error: 'Resource name is required for logs operation!' indicates that the resourceName parameter was not provided; ensure it is set.
- Network or permission issues may prevent fetching logs; check cluster connectivity and RBAC settings.