Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including StatefulSets. The 'Scale' operation allows users to adjust the number of replicas for a StatefulSet within a specified namespace. This is useful for managing application scaling dynamically, such as increasing replicas during high load or reducing them to save resources.
Use Case Examples
- Scaling a StatefulSet named 'web-app' in the 'production' namespace from 3 to 5 replicas to handle increased traffic.
- Scaling down a StatefulSet in the 'default' namespace to zero replicas for maintenance.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the StatefulSet resource is located. |
| Resource Name | The name of the StatefulSet resource to scale. |
Output
JSON
status- The status or result of the scale operation, typically including details about the updated StatefulSet.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the cluster.
Troubleshooting
- Ensure Kubernetes credentials are correctly configured and valid; otherwise, the node will throw a 'No credentials got returned!' error.
- The 'Resource Name' must be specified and correspond to an existing StatefulSet in the given namespace; otherwise, the scale operation will fail.
- Namespace defaults to 'default' if not specified, but ensure the StatefulSet exists in that namespace to avoid errors.
Links
- Kubernetes StatefulSets - Official Kubernetes documentation on StatefulSets, explaining their purpose and usage.
- Scaling a StatefulSet - Guide on how to scale StatefulSets in Kubernetes.