# How do you change an image tag in every Deployment without writing a patch?

Kustomize, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/how-do-you-change-an-image-tag-in-every-deployment-without-writing-a-patch

- A. Set spec.template.image in the kustomization.yaml
- B. Put the tag in namePrefix so it's added everywhere
- C. Add an images entry with the image name and newTag
- D. Add the tag to commonAnnotations as image-tag

**Answer:** Add an images entry with the image name and newTag

**Explanation:** The images field matches containers by image name and can set newName, newTag or a digest. 'kustomize edit set image nginx=nginx:1.27' writes the entry for you, which suits CI pipelines.
