This page covers common configuration steps for etcd deployments.
Use the same configuration file referenced in the setup guide for your installation.
Typical location:
/etc/etcd/etcd.conf
ETCD_NAME=node1
ETCD_DATA_DIR=/var/lib/etcd
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://10.0.0.10:2380
ETCD_LISTEN_PEER_URLS=http://10.0.0.10:2380
ETCD_LISTEN_CLIENT_URLS=http://10.0.0.10:2379,http://127.0.0.1:2379
ETCD_ADVERTISE_CLIENT_URLS=http://10.0.0.10:2379
ETCD_INITIAL_CLUSTER=node1=http://10.0.0.10:2380,node2=http://10.0.0.11:2380,node3=http://10.0.0.12:2380
ETCD_INITIAL_CLUSTER_STATE=new
ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-1
2379/2380 to trusted network ranges.Reload services or restart the cluster nodes after updates.
sudo systemctl restart etcd
Run a service discovery query to confirm configuration is valid.
etcdctl endpoint health --endpoints=http://127.0.0.1:2379
etcdctl endpoint status --write-out=table --endpoints=http://127.0.0.1:2379