Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
StatefulSets → 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 StatefulSet resource within a specified 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 StatefulSet named 'my-statefulset' in the 'default' namespace to 3 replicas to handle increased load.
- Reducing the replicas of a StatefulSet to 1 during off-peak hours to optimize resource usage.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the StatefulSet resource is located. |
| Resource Name | The name of the StatefulSet resource to scale. |
| Replicas | The desired number of replicas to scale the StatefulSet to. |
Output
JSON
json- The response from the Kubernetes API after scaling the StatefulSet, typically containing the updated resource details.
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 have sufficient permissions to scale StatefulSets in the specified namespace.
- Check that the 'Replicas' value is a valid number; invalid values may cause the scaling operation to fail.
Links
- Kubernetes StatefulSets - Official Kubernetes documentation on StatefulSets, explaining their purpose and usage.
- Scaling a StatefulSet - Guide on how to scale StatefulSets in Kubernetes.