Reading from etcd
Reading a value in an etcd cluster
Prerequisites
- Install
etcdctl
Procedure
Use the get subcommand to read from etcd:
where:
foois the requested keyHello World!is the retrieved value
Or, for formatted output:
where write-out="json" causes the value to be output in JSON format (note that the key is not returned).