Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Pods → Logs
AI-generatedOverview
This node interacts with Kubernetes to perform various operations on Pods, including retrieving logs. Specifically, the 'Logs' operation fetches the logs of a specified container within a Pod in a given namespace. This is useful for monitoring and debugging applications running in Kubernetes clusters by accessing their runtime logs.
Use Case Examples
- Fetching logs from a specific container in a Pod to diagnose application issues.
- Monitoring real-time output of a container for operational insights.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the Pod resides. |
| Resource Name | The name of the Pod from which to retrieve logs. |
| Container Name | The specific container within the Pod to get logs from. |
Output
JSON
logs- The logs output from the specified container in the Pod.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure the 'Resource Name' (Pod name) is provided; otherwise, the node throws an error indicating the resource name is required for the logs operation.
- Verify that the specified 'Namespace' and 'Container Name' exist in the Kubernetes cluster to avoid errors fetching logs.
- Check Kubernetes API credentials are correctly configured and have permissions to access Pod logs.
Links
- Kubernetes Logging Concepts - Official Kubernetes documentation on logging and how logs are managed in Kubernetes clusters.