Kubernetes icon

Kubernetes

Interact with Kubernetes

StatefulSets → Get

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, including StatefulSets. For the 'Get' operation on StatefulSets, it retrieves detailed information about a specific StatefulSet resource within a given namespace. This is useful for monitoring, managing, or automating workflows involving Kubernetes StatefulSets, such as fetching configuration or status details of a StatefulSet by its name.

Use Case Examples

  1. Retrieve the details of a StatefulSet named 'my-statefulset' in the 'default' namespace to monitor its current state and configuration.
  2. Fetch information about a StatefulSet before performing an update or scaling operation to ensure the correct resource is targeted.

Properties

Name Meaning
Namespace The Kubernetes namespace where the StatefulSet resource is located. Defaults to 'default' if not specified.
Resource Name The name of the specific StatefulSet resource to retrieve information about.

Output

JSON

  • json - The detailed JSON representation of the StatefulSet resource retrieved from Kubernetes.

Dependencies

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

Troubleshooting

  • If the 'Resource Name' is not provided, the node throws an error indicating that the resource name is required for the get operation.
  • Ensure that the Kubernetes credentials are correctly configured and valid; otherwise, the node will throw an error about missing credentials.
  • If the specified StatefulSet does not exist in the given namespace, the Kubernetes API will return an error, which the node will propagate.

Discussion