Updating kubernetes deployment with same image name

1k views Asked by At

We have a micro-services java applications, as and when we have changes in code we have to perform the kubernetes deployment.

How will I apply the latest changes to the deployment with the same Image name

we have a single replica and when I execute kubectl apply -f deployment.yaml it says unchanged.

We have kubelet version of v1.13.12

Please help.

1

There are 1 answers

0
Jonas On

This has been discussed in #33664

using :latest tag IMO is not the best practice as it's hard to track what image is really in use in your pod. I think tagging images by versions or using the digests is strictly better than reusing the same tag. Is it really such a hassle to do that?

The recommended way is to not use image tag :latest when using declarative deployment with kubectl apply.