Kubernetes icon

Kubernetes

Interact with Kubernetes

StatefulSets → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting StatefulSets in this context. It is useful for managing Kubernetes workloads programmatically within an automation workflow. For example, it can list StatefulSets in a specified namespace, retrieve details of a specific StatefulSet, or perform other operations like scaling or deleting StatefulSets.

Use Case Examples

  1. List all StatefulSets in the 'default' namespace to monitor running stateful applications.
  2. Retrieve detailed information about a specific StatefulSet by its name to inspect its configuration.

Properties

Name Meaning
Namespace The Kubernetes namespace where the StatefulSets are located. Defaults to 'default' if not specified.
Resource Name The name of a specific StatefulSet resource to target for operations that require a resource name, such as getting details or deleting.

Output

JSON

  • json - The JSON output contains the result of the list operation, which is an array or object representing the StatefulSets found in the specified namespace.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw an error.
  • If the 'Resource Name' is required for the operation but not provided, the node will throw an error indicating the missing resource name.
  • The 'Namespace' must be valid and accessible in the Kubernetes cluster; otherwise, the operation may fail or return empty results.

Discussion