<p>I have a very strange scenario playing out right now with my configs where environment vars don't seem to be honored by the container.</p>
<p>I'm trying to set the active spring profile via the deployment.xml file like this:</p>
<pre><code>...
containers:
- env:
  - name: SPRING_PROFILES_ACTIVE
    value: {{ .Values.springProfile }}
...
</code></pre>
<p>This seems to work properly as on my pod I see the following:</p>
<p><a href="https://i.stack.imgur.com/lttAu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lttAu.png" alt="enter image description here" /></a></p>
<p>However, when I check my logs I can see that it is clearly using the wrong profile, likely the default profile.</p>
<p>Some environment details:</p>
<ul>
<li>AWS EKS</li>
<li>Base docker image is amazoncorretto</li>
<li>Helm is being used</li>
</ul>
<p>Any help would be greatly appreciated.</p>

user1170235
<p>OK, so I figured it out... everything is working fine.  I was misinterpretting my logs and thought that what I was seeing indicated the profile wasn't being picked up.</p>
<p>Everything works fine :)</p>
