Inserting Configurations
Once you have your configurations defined and validated, you can insert them into your key-value store using the protoconf insert command. This command enables protoconf to manage your configurations in a distributed manner, making them available to your applications wherever they are running.
Basic Usage
The basic usage of the protoconf insert command is as follows:
protoconf insert -store <store> -store-address <store-address> <config>...
The <store> parameter specifies the type of key-value store you are using: consul, zookeeper, etcd, or — since v0.2.0 — configmaps. The <store-address> parameter is the address of your key-value store.
The <config>... parameters are one or more configuration paths that you want to insert. These paths correspond to the paths that your applications will use when requesting configurations from the protoconf agent.
For example, to insert the default and debug configurations for the myproject/server_config into an Etcd store:
protoconf insert -store etcd -store-address etcd:2379 myproject/server_config/default myproject/server_config/debug
Note that the user running this command needs to have access to the key-value store.