Kubernetes Workloads Cheat Sheet/Update deployment image

Roll out a new container image.

Section: Deployments

Update deployment image

bash
bash
kubectl set image deployment/web web=ghcr.io/acme/web:2.4.1 -n payments
Explanation

Roll out a new container image.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Deployments
Watch rollout status
Block until the rollout finishes or fails.
OpenIn sheetbashsame section
List deployments
Show deployments across namespaces.
OpenIn sheetbashsame section
Describe deployment
Inspect rollout state, replicas, and events.
OpenIn sheetbashsame section
Set deployment resources
Update requests and limits from the CLI.
OpenIn sheetbashsame section
Set environment variable
Set or update environment variables.
OpenIn sheetbashsame section
Show rollout history
List deployment revisions.
OpenIn sheetbashsame section