set_deployment_image
Update a deployment container's image for a Kubernetes deployment. Returns the previous image for easy rollback; use dry_run to preview changes without applying them.
Instructions
[WRITE][risk=medium] Update a deployment container's image. Inverse: restore previous.
Returns previous_image 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. container: Container name within the pod template (see deployment_get). image: New image reference (e.g. "nginx:1.27"). namespace: Namespace; omit for the target's default namespace. dry_run: If True, preview without updating the image. target: k8s target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| image | Yes | ||
| target | No | ||
| dry_run | No | ||
| container | Yes | ||
| namespace | No |