there's probably something i'm not understanding about kustomize
but using a simple kustomize edit set image ...
followed by kustomize build . | kubectl apply -f -
is actually creating duplicate pods rather than replacing pods. It's supposed to be taking my new docker image and replacing the currently deployed pod with a pod that contains the new image. is there some way i can understand why this is happening?
here's my kustomize.yaml. it's very simple. the images
section is an example result of the kustomize edit ...
command above
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
- ingress.yaml
images:
- name: repo.pkg.dev/PROJECT/REPO/IMAGE:TAG
newName: repo.pkg.dev/.../.../...
newTag: custom-tag
running a simple kubectl apply
without any of the kustomize stuff used to do exactly what i want before