Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including StatefulSets. The 'Scale' operation allows users to adjust the number of replicas for a StatefulSet within a specified namespace. This is useful for managing application scaling dynamically, such as increasing replicas during high load or reducing them to save resources.

Use Case Examples

  1. Scaling a StatefulSet named 'web-app' in the 'production' namespace from 3 to 5 replicas to handle increased traffic.
  2. Scaling down a StatefulSet in the 'default' namespace to zero replicas for maintenance.

Properties

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

Output

JSON

  • status - The status or result of the scale operation, typically including details about the updated StatefulSet.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and valid; otherwise, the node will throw a 'No credentials got returned!' error.
  • The 'Resource Name' must be specified and correspond to an existing StatefulSet in the given namespace; otherwise, the scale operation will fail.
  • Namespace defaults to 'default' if not specified, but ensure the StatefulSet exists in that namespace to avoid errors.

Links

Discussion