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.
I'm trying to set the active spring profile via the deployment.xml file like this:
...
containers:
- env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.springProfile }}
...
This seems to work properly as on my pod I see the following:

However, when I check my logs I can see that it is clearly using the wrong profile, likely the default profile.
Some environment details:
Any help would be greatly appreciated.
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.
Everything works fine :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With