Centralised Environment variables

9/17/2019

I am looking for a tool which can help to maintain the environment variables and their values in a centralised location and used by many applications from the centralised location.

For example, I have a environment variable called API_KEY and the value of API_KEY in UAT environment for specific service will be same and I want the application to fetch the value of API_KEY from a tool.

Please share your thoughts if you have come across similar tools.

Thanks and Regards!!! Ananth Francis.

-- Ananth Francis
devops
kubernetes
node.js
openshift

1 Answer

9/18/2019

Consider using ConfigMaps.

ConfigMaps bind configuration files, command-line arguments, environment variables, port numbers, and other configuration artifacts to your Pods' containers and system components at runtime.

Here is an official documentation describing how to use it.

ConfigMaps are useful for storing and sharing non-sensitive, unencrypted configuration information. To use sensitive information in your clusters, you must use Secrets.

Analogically here you can find more info about Secrets.

Please let me know if that helped.

-- OhHiMark
Source: StackOverflow