Kubernetes icon

Kubernetes

Interact with Kubernetes

StatefulSets → Logs

AI-generated

Overview

This node interacts with Kubernetes StatefulSets to retrieve logs. It is useful for monitoring and debugging StatefulSets by fetching their container logs. For example, a user can specify the namespace, StatefulSet name, and container name to get the logs of a specific container within a StatefulSet.

Use Case Examples

  1. Fetching logs from a StatefulSet container to troubleshoot application issues.
  2. Monitoring StatefulSet container logs for performance and error tracking.

Properties

Name Meaning
Namespace The Kubernetes namespace where the StatefulSet resides.
Resource Name The name of the StatefulSet resource to fetch logs from.
Container Name The name of the container within the StatefulSet to retrieve logs from.

Output

JSON

  • logs - The logs output from the specified container in the StatefulSet.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and have permissions to access StatefulSets and their logs.
  • Verify that the specified namespace and StatefulSet resource name exist in the cluster.
  • Check that the container name is correct and exists within the StatefulSet pods.
  • Common error: 'Resource name is required for logs operation!' indicates the resourceName parameter is missing or empty.

Discussion