kubectl set image
CautionUpdate container images
kubectl set image deploy/<name> <c>=<img:tag>
Swaps the image and triggers a rolling update; watch with rollout status, revert with undo.
Examples
kubectl set image deploy/web app=registry/app:1.4.1Roll out a new version
Syntax
kubectl set image <res> <container>=<image:tag>
Before you run it
Wrong tags cause pull or crash loops.
Used when you see
Related commands
- kubectl rolloutRollout restart/undo
- kubectl get deployList deployments
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store