Storing Configuration as File References
Another popular option is git2consul which mirrors the contents of a Git repository to Consul’s key/value store.
You can setup a Git repository that contains files like application.yml
, hello-world-test.json
, etc., and the contents of these files will be cloned to Consul.
In this case, each key in Consul represents a file with an extension, for example /config/application.yml
, and you must configure the FILE
format:
application.yml
consul:
client:
config:
format: FILE