Kubernetes icon

Kubernetes

Interact with Kubernetes

Jobs → 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 Kubernetes resource, such as a Job. This is useful for scaling workloads up or down dynamically based on demand or operational requirements.

Use Case Examples

  1. Scaling a Kubernetes Job to increase or decrease the number of active pods to handle workload changes.
  2. Adjusting the replica count of a deployment or stateful set to manage resource utilization.

Properties

Name Meaning
Namespace The Kubernetes namespace where the target resource resides. Defaults to 'default' if not specified.
Resource Name The name of the specific Kubernetes resource (e.g., Job) to scale.
Replicas The desired number of replicas to scale the resource to.

Output

JSON

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

Dependencies

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

Troubleshooting

  • Ensure that the 'Resource Name' is provided; otherwise, the node will throw an error indicating the resource name is required for the scale operation.
  • Verify that the Kubernetes credentials are correctly configured and valid, as missing or invalid credentials will cause the node to fail.
  • The 'Replicas' property must be a valid number; invalid values may cause the scaling operation to fail.

Discussion