Command

Kubernetes Update a Deployment Image Command

The Kubernetes command to update a deployment image is kubectl set image deployment/frontend www=image:v2.

Quick Answer

Command
kubectl set image deployment/frontend www=image:v2
KubernetesCommand

Update a Deployment Image

Type this command
kubectl set image deployment/frontend www=image:v2

Performs a rolling update of a container's image.

Learn More

How to update a deployment image in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl set image deployment/frontend www=image:v2, replace any placeholders, and run it.

Kubernetes Update a Deployment Image Command

Run kubectl set image deployment/frontend www=image:v2.

Related Commands

Frequently asked questions

What is the Kubernetes command to update a deployment image?

Run kubectl set image deployment/frontend www=image:v2.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify