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:
- AWS EKS
- Base docker image is amazoncorretto
- Helm is being used
Any help would be greatly appreciated.