Basically, trying to wrap my brain around how I should be handling secrets using Docker, k8s, and Skaffold in a dev environment. I'm pretty new to this tech, so don't fully understand all of it.
Just not sure if I should be using a
config.json, that isn't committed to the repo, or if there is a better way with using Docker.
Ideally, I could just refer to
process.env.API_KEY in my code, regardless of environment, and it would just work and grab the correct environmental variables. If it is in production in AWS, it would just grab the keys from Key Management Services. In production, it would just grab them from where ever.
Did come across this, which seems to apply to Docker Swarm so may not be relevant:
So what is the best practice using Docker, k8s, Skaffold for handling environmental variables and secrets in developement?