Kubernetes icon

Kubernetes

Interact with Kubernetes

Deployments → Scale

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources. Specifically, the 'Scale' operation allows users to adjust the number of replicas for a specified deployment resource within a given namespace. This is useful for scaling applications up or down based on demand, such as increasing replicas during high traffic or reducing them to save resources.

Use Case Examples

  1. Scaling a deployment named 'my-app' in the 'default' namespace to 3 replicas to handle increased load.
  2. Reducing the replicas of a deployment to 1 during off-peak hours to save costs.

Properties

Name Meaning
Namespace The Kubernetes namespace where the deployment resource is located.
Resource Name The name of the deployment resource to scale.
Replicas The desired number of replicas to scale the deployment to.

Output

JSON

  • json - The response from the Kubernetes API after scaling the deployment resource, typically containing the updated resource details.

Dependencies

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

Troubleshooting

  • Common issues include missing or incorrect Kubernetes credentials, which will cause authentication failures.
  • If the resource name is not provided, the node throws an error indicating that the resource name is required for the scale operation.
  • Errors from the Kubernetes API, such as insufficient permissions or invalid replica counts, may also occur and should be handled by verifying user permissions and input values.

Links

Discussion