scale_deployment
Scale a Kubernetes deployment to a target replica count. Preview with dry-run and receive the previous count for rollback.
Instructions
[WRITE][risk=medium] Scale a deployment to replicas. Inverse: restore previous count.
Returns previous_replicas so the change can be undone. Pass dry_run=True
to preview without changing anything (no undo is recorded for a preview).
Args: name: Deployment name. replicas: Desired replica count. namespace: Namespace; omit for the target's default namespace. dry_run: If True, preview without scaling. target: k8s target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No | ||
| replicas | Yes | ||
| namespace | No |