Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the StatefulSets resource with the List operation, it retrieves a list of StatefulSets within a specified namespace. This is useful for monitoring, managing, or automating workflows involving Kubernetes StatefulSets, such as checking the current state or inventory of StatefulSets in a cluster.

Use Case Examples

  1. Listing all StatefulSets in the 'default' namespace to monitor their status.
  2. Automating the retrieval of StatefulSets information for integration with other systems or dashboards.

Properties

Name Meaning
Namespace The Kubernetes namespace in which to list StatefulSets. Defaults to 'default' if not specified.
Resource Name The specific name of the StatefulSet resource to target, if applicable. Can be left empty to list all StatefulSets in the namespace.

Output

JSON

  • metadata
    • name - The name of the StatefulSet.
    • namespace - The namespace of the StatefulSet.
  • spec - The specification details of the StatefulSet, including replicas, selector, template, etc.
  • status - The current status of the StatefulSet, including observed generation, replicas, ready replicas, etc.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing or invalid credentials will cause errors.
  • Verify the namespace exists and is accessible with the provided credentials.
  • If the resource name is specified, ensure it matches an existing StatefulSet in the namespace.
  • Common error: 'No credentials got returned!' indicates missing or misconfigured Kubernetes credentials.

Discussion