Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including StatefulSets. For the 'Logs' operation on StatefulSets, it retrieves the logs of the specified StatefulSet resource within a given namespace. This is useful for monitoring and debugging StatefulSets by accessing their runtime logs directly from the Kubernetes environment.

Use Case Examples

  1. Retrieve logs from a StatefulSet named 'my-statefulset' in the 'default' namespace to diagnose issues or monitor its behavior.
  2. Fetch logs from a StatefulSet in a custom namespace to analyze application performance or errors.

Properties

Name Meaning
Namespace The Kubernetes namespace where the StatefulSet resource is located.
Resource Name The name of the StatefulSet resource for which logs are to be retrieved.

Output

JSON

  • logs - The logs output retrieved from the specified StatefulSet resource.

Dependencies

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

Troubleshooting

  • If no credentials are provided or invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
  • If the resource name or namespace is incorrect or the StatefulSet does not exist, the logs retrieval will fail. Verify the resource name and namespace are correct.
  • The node expects the command property to be an array for certain operations; if not, it throws 'Command must be an array!'. Ensure the command input is properly formatted as a JSON array.

Discussion