scale_statefulset
Scale a StatefulSet to a desired replica count, with dry-run preview and automatic rollback to previous count.
Instructions
[WRITE][risk=medium] Scale a statefulset to replicas. Inverse: restore previous count.
Pass dry_run=True to preview without scaling (no undo is recorded for a preview).
Args: name: StatefulSet 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 |