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

<p>How will I apply the latest changes to the deployment with the same Image name</p>

<p>we have a single replica and when I execute <code>kubectl apply -f deployment.yaml</code> it says unchanged.</p>

<p>We have kubelet version of v1.13.12</p>

<p>Please help.</p>

magic
<p>This has been discussed in <a href="https://github.com/kubernetes/kubernetes/issues/33664" rel="nofollow noreferrer">#33664</a></p>

<blockquote>
  <p>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?</p>
</blockquote>

<p>The recommended way is to <strong>not</strong> use image tag <code>:latest</code> when using declarative deployment with <code>kubectl apply</code>.</p>
