Kubernetes icon

Kubernetes

Interact with Kubernetes

Pods → Logs

AI-generated

Overview

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

  1. Fetching logs from a specific container in a Pod to diagnose application issues.
  2. 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

Discussion