how to set up etcd v3 gateway and grpc-proxy modes in etcd.conf

409 views
Skip to first unread message

carl....@gmail.com

unread,
Oct 27, 2017, 3:54:59 PM10/27/17
to etcd-dev
In etcd v2 you could run in proxy mode, which on the command line would be something like:

% etcd --proxy on

as described in the v2 documentation here:

https://coreos.com/etcd/docs/latest/v2/proxy.html

Although undocumented, I found an example in the distributed /etc/etcd/etcd.conf file to turn that on automatically on startup (systemd):

[proxy]
ETCD_PROXY="on"
#ETCD_PROXY_FAILURE_WAIT="5000"
#ETCD_PROXY_REFRESH_INTERVAL="30000"
#ETCD_PROXY_DIAL_TIMEOUT="1000"
#ETCD_PROXY_WRITE_TIMEOUT="5000"
#ETCD_PROXY_READ_TIMEOUT="0"

In etcd v3, this has been replaced by either gateway or grpc-proxy, running something like this:

% etcd gateway start
% etcd grpc-proxy start


as described in the v3 documentation here:

https://github.com/coreos/etcd/blob/master/Documentation/op-guide/gateway.md
https://github.com/coreos/etcd/blob/master/Documentation/op-guide/grpc_proxy.md

Does anyone know whether either or both of these options have a method of being placed in the config file for systemd startup?  Or will I have to create something like a custom etcd service file as a systemd dropin instead?

Pointers to existing documentation or examples gladly accepted.  I've tried searching but have been unsuccessful so far.

Thanks!



Gyu-Ho Lee

unread,
Oct 27, 2017, 5:56:42 PM10/27/17
to carl....@gmail.com, etcd-dev
gateway and grpc-proxy are separate binaries as sub-commands,
so you need to write a separate service file.

--
You received this message because you are subscribed to the Google Groups "etcd-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etcd-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Sincerely,
Gyu-Ho Lee
Reply all
Reply to author
Forward
0 new messages