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 are 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