In order to stand up a new version of my application, I need to pass a base64 string hash, which is the license file needed to complete the bootstrap of the app. Today this hash is hardcoded within one of the YAML files. My question is, what's the best option to handle this? I've tried to use environment variables to pass the license dynamically but it didn't work, or I wasn't able to make it work.
Just wondering what folks are using out there.
First of all thanks everybody who took some time to answer my topic. I have tried secrets before and it didn’t work. At least not the way I tried. Today there is a configMap with the license base64 hash there. What I want is to have this license saved in a file somewhere and the Kubernetes deployments to use it. It can be an environment variable as well. I just didn’t find a way do that actually…