Kubernetes icon

Kubernetes

Interact with Kubernetes

ReplicaSets → Scale

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on resources, specifically here focusing on scaling ReplicaSets. It allows users to adjust the number of replicas for a given ReplicaSet within a specified namespace. This is useful for managing application availability and load by increasing or decreasing the number of pod instances running in the cluster.

Use Case Examples

  1. Scaling a ReplicaSet named 'frontend' in the 'default' namespace to 3 replicas to handle increased traffic.
  2. Reducing the replicas of a ReplicaSet named 'backend' in the 'production' namespace to 1 during low usage periods to save resources.

Properties

Name Meaning
Namespace The Kubernetes namespace where the ReplicaSet is located. Defaults to 'default' if not specified.
Resource Name The name of the ReplicaSet resource to scale.
Replicas The desired number of replicas to scale the ReplicaSet to.

Output

JSON

  • json - The response from the Kubernetes API after scaling the ReplicaSet, typically including the updated ReplicaSet details.

Dependencies

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

Troubleshooting

  • Error 'Resource name is required for scale operation!' occurs if the resource name is not provided; ensure the 'Resource Name' field is filled.
  • Authentication errors may occur if Kubernetes credentials are missing or invalid; verify credentials are correctly configured.
  • Scaling operation may fail if the specified namespace or ReplicaSet does not exist; confirm the namespace and resource name are correct.

Links

Discussion