1. The Twelve-Factor App
III. Config: "The twelve-factor app stores config in environment variables... Unlike config files
they are a language- and OS-agnostic standard. Another aspect of config management is grouping. Sometimes apps group config into named groups... A twelve-factor app is opposed to this grouping of configs
and instead encourages tools to manage these values separately for each deploy."
Source: Heroku
"The Twelve-Factor App
" Section III. Config. Retrieved from https://12factor.net/config
2. Kubernetes Documentation
Configure a Pod to Use a ConfigMap: "A common usage pattern is to set environment variables for a Pod using data from a ConfigMap... This makes your application configuration portable." This official documentation for a core container orchestration platform demonstrates the implementation of the environment variable pattern.
Source: Kubernetes Authors
"Configure a Pod to Use a ConfigMap
" Kubernetes Documentation
spec.containers[].envFrom and spec.containers[].env sections.
3. Docker Documentation
Docker run reference: "With the -e
--env
and --env-file flags
you can set environment variables for the process running inside the container... This allows you to run the same image in development
test
and production with different configurations."
Source: Docker Inc.
"Docker run reference
" Docker Docs
Environment variables (-e
--env
--env-file) section.