FahamLah

Commands

kubectl set image deployment/<name>

kubectl set image deployment/<name> <container>=<image>

Risk: Careful

What it does

Puts a new image in the pod template. A rolling update starts.

When to use it

To ship a new version of your app.

Example

$ kubectl set image deployment/shop web=nginx:1.30-alpine

Swap the trays to version 1.30, a few at a time.