Kubernetes icon

Kubernetes

Interact with Kubernetes

ReplicaSets → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the ReplicaSets resource with the List operation, it retrieves a list of ReplicaSets within a specified namespace. This is useful for monitoring and managing ReplicaSets in Kubernetes environments, such as listing all ReplicaSets in the 'default' namespace or any other specified namespace.

Use Case Examples

  1. Listing all ReplicaSets in the 'default' namespace to monitor deployment scaling.
  2. Retrieving ReplicaSets in a custom namespace to audit or manage workloads.

Properties

Name Meaning
Namespace The Kubernetes namespace from which to list ReplicaSets. Defaults to 'default' if not specified.
Resource Name The name of the specific resource, not typically required for listing ReplicaSets but available for other operations.

Output

JSON

  • json - The JSON output containing the list of ReplicaSets retrieved from the specified namespace.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and valid; otherwise, the node will throw a 'No credentials got returned!' error.
  • If the namespace does not exist or is misspelled, the node may return an error or empty list.
  • For operations requiring a resource name (not applicable for list), missing this parameter will cause an error indicating the resource name is required.

Discussion