-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to batch-load (initialize) from json file? #8205
Comments
@ehudkaldor We currently support YAML format https://github.com/coreos/etcd/blob/master/embed/config.go#L199. Example config can be found here https://github.com/coreos/etcd/blob/master/etcd.conf.yml.sample |
not what I meant. this is how how to use a conf file for etcd itself. What I am looking for is a way to input (set/mk/whatever) the values I need served by etcd, after it starts.
than |
no. etcd will not load data from json file. you can write a script to do that after you bootstrap an etcd cluster. |
for that matter, this is how i do it now using jq:
|
your script looks good. |
am i the first one to ask for this kind of functionality? can we make it into an enhancement? |
In our team, we also had a hard time in loading initial values into etcd. |
I cannot seem to find a way to initialize etcd using a json file. A two-level file is what I need (directory from each top level, than its children as key-value pairs), but even a flat file would be good at this point. It any other way...
The text was updated successfully, but these errors were encountered: