<p>I modified the contents in my Docker-Image and ran it's Kubernetes Pod. However, the Kubernetes Pod had the contents of the old version of the Docker Image and not the Modified One.</p>
<p>How is it possible?</p>
<p>I am guessing that the K8s worker node is trying to fetch as many layers from the local as possible and only few from the docker-registry.
How to solve this issue such that every time the K8s worker node pull all the layers of the docker image from the Registry only?</p>

<p>Set <code>imagePullPolicy</code> to <code>Always</code>.</p>
<p>Sample:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Pod
metadata:
  name: demo
spec:
  containers:
    - name: image-name
      image: my-image:0.0.1
      imagePullPolicy: Always # &lt;&lt;--here
</code></pre>
<blockquote>
<p>The default pull policy is <code>IfNotPresent</code> which causes the kubelet to skip pulling an image if it already exists. If you would like to always force a pull, set it to <code>Always</code>.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/concepts/containers/images/#updating-images" rel="nofollow noreferrer">Reference</a></p>
