JAEN

Kubernetes

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

ImagePullBackOff
4
Fix the tag and roll out again
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store