<p>Currently I implemented a test CI/CD pipeline using Jenkins, Docker and Kubernetes. I am using Kubernetes Helm Chart for adding my Kubernetes resources and using Dockerhub as image repository. When I am checking the output of api that I deployed, it's not updated with modified change.</p>

<p>When I checked with the console output of Jenkins, it showing everything successfully. But the latest Docker image is not pulling by using the tag "latest". Still I am getting the older output.</p>

<p>In my Helm Chart values.yaml, I added like following:</p>

<pre><code>imageCredentials:
  name: helmchartrepository
  registry: &lt;my-registry-name&gt;
  username: &lt;my-username&gt;
  password: &lt;my-password&gt;

image:
  repository: &lt;my-repository&gt;
  tag: latest
  pullPolicy: Always
</code></pre>

<p>And my deployment.yaml referring to these values like the following:</p>

<p><a href="https://i.stack.imgur.com/ZJ0Wv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZJ0Wv.png" alt="enter image description here"></a></p>

<p>NB: Even if I am using the configuration for pulling latest image from repository by using "latest" , still I am not getting the modified image. And there is no error also. Only issue is pulling the latest docker image from Dockerhub image repository.</p>

<p>How can I resolve this error?</p>

<p>Add <code>date: "{{ .Release.Time.Seconds }}"</code> in your <code>deployment</code> under <code>template/metadata/labels</code> and set <code>imagePullPolicy: Always</code>. Helm will detect the changes in the deployment object and will pull the latest image each time:</p>

<pre><code>template:
    metadata:
      labels:
        app.kubernetes.io/name: {{ .Values.app.frontendName }}
        app.kubernetes.io/instance: {{ .Release.Name }}
        date: "{{ .Release.Time.Seconds }}"
</code></pre>

<p>Run <code>helm upgrade releaseName ./my-chart</code> to upgrade your release</p>
