<p>I am trying to upgrade one of my chart. But the changes which I have made in the "deployment.yaml" template in the chart is not there after the upgrade. I added the following lines in the spec of my kubernetes deployment.yaml file</p>

<pre><code>spec:
  containers:
  - env:
    - name: LOGBACK_DB_ACQUIRE_INCREMENT
      value: "1"
    - name: LOGBACK_DB_MAX_IDLE_TIME_EXCESS_CONNECTIONS
      value: "10"
    - name: LOGBACK_DB_MAX_POOL_SIZE
      value: "2"
    - name: LOGBACK_DB_MIN_POOL_SIZE
      value: "1"
</code></pre>

<p>I tried upgrading using the following command</p>

<p>helm upgrade ironic-molly spring-app-0.1.2.tgz --recreate-pods</p>

<p>Where "<strong>ironic-molly</strong>" is the release-name and <strong>spring-app-0.1.2.tgz</strong> is my chart with changes.</p>

<p>Helm output says that the package is upgraded, but the changes which i have made is missing in the deployment.yaml. What might be causing this issue.?</p>

<p>Regards,</p>

<p>Muhammed Roshan</p>

<p>(If the problem is not with indents - adding an answer that also matches the title in general).</p>
<hr />
<p>A few points to consider when you upgrade your helm charts:</p>
<p>1 ) Add the <code>--debug</code> to the <code>helm upgrade</code> command.</p>
<p>2 ) Check the current values of the specific resource - for example deployment: <br><code>kubectl get deploy &lt;deploymnet name&gt; -o yaml</code>.</p>
<p>3 ) Check latest events: <code>kubectl get events -n &lt;namespace&gt;</code>.</p>
<p>4 ) Check latest logs: <code>kubectl logs -l name=myLabel</code>.</p>
<p>5 ) If you want to ensure that pods are re-created - add a specific timestamp via annotation:</p>
<pre><code>kind: Deployment
metadata:
...
spec:
  template:
    metadata:
      labels:
        app: k8s-dashboard
      annotations:
        timestamp: &quot;{{ date &quot;20060102150405&quot; .Release.Time }}&quot;
</code></pre>
