Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources such as ReplicaSets. Specifically, for the 'Logs' operation on ReplicaSets, it retrieves the logs of the specified ReplicaSet within a given namespace. This is useful for monitoring and debugging applications running in Kubernetes by accessing their log output.

Use Case Examples

  1. Retrieve logs from a ReplicaSet named 'my-replicaset' in the 'default' namespace to troubleshoot application issues.
  2. Monitor the logs of a ReplicaSet in a production environment to ensure the application is running smoothly.

Properties

Name Meaning
Namespace The Kubernetes namespace where the ReplicaSet resource is located. Defaults to 'default' if not specified.
Resource Name The name of the ReplicaSet resource for which logs are to be retrieved.

Output

JSON

  • logs - The log output retrieved from the specified ReplicaSet.

Dependencies

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

Troubleshooting

  • If no credentials are provided or credentials are invalid, the node will throw an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
  • If the specified namespace or ReplicaSet name does not exist, the operation may fail or return empty logs. Verify the resource names and namespaces are correct.
  • Ensure the user has sufficient permissions to access logs of the ReplicaSet in the Kubernetes cluster to avoid authorization errors.

Discussion