scale_deployment
Scale a Kubernetes deployment to a target number of replicas. Preview changes with dry-run mode before applying.
Instructions
WRITE ACTION — This modifies cluster state. Scales a Deployment to the specified number of replicas. Always confirm with the user before calling this. Use dryRun=true (default) to preview the change without executing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true (default), preview the action without executing it. Set to false only after the user confirms. | |
| replicas | Yes | Target number of replicas. | |
| namespace | No | Kubernetes namespace. Defaults to "default". | |
| deploymentName | Yes | Name of the deployment to scale. |