Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Namespaces → 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 resource within a given namespace. This is useful for scaling deployments, replica sets, or other scalable Kubernetes resources to manage workload and resource allocation dynamically.
Use Case Examples
- Scaling a deployment named 'my-deployment' in the 'default' namespace to 3 replicas to handle increased traffic.
- Reducing the number of replicas of a stateful set to save resources during low usage periods.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the resource is located. |
| Resource Name | The name of the specific Kubernetes resource to scale. |
| Replicas | The desired number of replicas to scale the resource to. |
Output
JSON
json- The response from the Kubernetes API after scaling the resource, typically including 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 be returned and should be handled accordingly.
Links
- Kubernetes ReplicaSet Scaling - Official Kubernetes documentation on scaling ReplicaSets, which is relevant to understanding how scaling works in Kubernetes.