rollout_undo_deployment
Roll back a Kubernetes deployment to a previous revision. Use dry run to preview changes before applying.
Instructions
[WRITE][risk=high] Roll a deployment back to a prior revision. HIGH RISK.
Defaults to the immediately previous revision. No clean automatic inverse — re-deploy the intended image/revision to move forward again. Pass dry_run=True to preview without rolling back.
Args: name: Deployment name. namespace: Namespace; omit for the target's default namespace. to_revision: Specific revision to roll back to (0 = previous). dry_run: If True, preview without rolling back. target: k8s target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No | ||
| namespace | No | ||
| to_revision | No |