Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Pods → Scale
AI-generatedOverview
This node interacts with Kubernetes to perform various operations on resources such as Pods. Specifically, the 'Scale' operation allows users to adjust the number of replicas for a specified Pod within a given namespace. This is useful for managing the scaling of applications dynamically based on demand or other criteria.
Use Case Examples
- Scaling a Pod named 'my-pod' in the 'default' namespace to 3 replicas to handle increased load.
- Reducing the number of replicas of a Pod to save resources during low traffic periods.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the Pod resides. Defaults to 'default' if not specified. |
| Resource Name | The name of the Pod resource to scale. |
| Replicas | The desired number of replicas to scale the Pod to. |
Output
JSON
json- The response from the Kubernetes API after scaling the Pod, typically including status and details of the scaled resource.
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 to avoid authentication errors.
- Check that the specified namespace and Pod exist in the Kubernetes cluster to prevent resource not found errors.
Links
- Kubernetes Scaling Documentation - Official Kubernetes documentation on scaling workloads, useful for understanding how scaling works in Kubernetes.