kubectl set image

The kubectl command that changes the container image of an existing workload such as a Deployment.

In more detail

Changing the image starts a new rollout of the workload. It is a quick push-model way to deploy a chosen image or digest without editing manifests.

Example

kubectl set image deployment/checkout checkout="$image"

Related terms

Taught in

References