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 'Get' operation, it retrieves detailed information about a specified StatefulSet within a given namespace. This is useful for monitoring, managing, or automating workflows involving Kubernetes StatefulSets, such as checking their status or configuration.

Use Case Examples

  1. Retrieve details of a specific StatefulSet named 'my-statefulset' in the 'default' namespace to monitor its current state.
  2. Use the node to fetch StatefulSet information as part of an automated deployment or scaling workflow.

Properties

Name Meaning
Namespace The Kubernetes namespace where the StatefulSet resource is located.
Resource Name The name of the specific StatefulSet resource to retrieve.

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 that valid Kubernetes credentials are provided; otherwise, the node will throw a 'No credentials got returned!' error.
  • The 'Resource Name' must be specified when performing the 'Get' operation; otherwise, the request may fail or return incomplete data.
  • The 'Namespace' should be correctly set to the namespace where the StatefulSet exists; using the wrong namespace will result in not finding the resource.

Discussion