Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Deployments → Scale
AI-generatedOverview
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
- Scaling a deployment named 'my-app' in the 'default' namespace to 3 replicas to handle increased load.
- 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
- Kubernetes Deployments - Official Kubernetes documentation on deployments, including scaling.
- Scaling a Deployment in Kubernetes - Guide on how to scale deployments in Kubernetes.