<p>I am modifying the code in my project, and deploying it in kubernetes pod, the pod are deployed successfully, but the latest changes which I have made in my code are not being reflected after deployment, any idea for it?</p>

<p>When you change the code inside your application which will be build into your container, you have to do the following:</p>
<ol>
<li>Rebuild your image with the latest changes (e.g. via <code>docker build ...</code>)</li>
<li>Push the image to your registry (e.g. via <code>docker push ...</code>)</li>
<li>Update your manifests with the new container version (field <code>spec.containers.image</code>) or if it has the same version/tag, make sure you have the <code>imagePullPolicy</code> set to <code>Always</code>.</li>
<li>In case your manifests did not change (e.g. because the tag remains the same), you need to trigger a rollout in your deployment or delete your Pods manually to ensure it pull the image again and takes the latest changes.</li>
</ol>
<p>If you're running a Webapp, you might need to clean your browser cache and reload all resources (<kbd>Shift</kbd> + <kbd>F5</kbd>)</p>
