scale_statefulset
Scale a Kubernetes StatefulSet to a specified replica count, with dry-run preview and undo support. Adjust replica capacity safely via governed operations.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"replicas": "<replicas>"
},
"name": "scale_statefulset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No | ||
| replicas | Yes | ||
| namespace | No |