💡 This is a single-node playground for etcd. To explore clustering capabilities, try the multi-node playground.
Use etcdctl
to interact with etcd on the local host:
etcdctl version
etcdctl endpoint health
💡 Check out the official tutorials for learning more about etcd.
There are multiple ways to configure etcd:
/etc/default/etcd
/etc/etcd/config.yaml
sudo systemctl edit etcd
to edit the service configuration (to use flags)Uncomment the following line in /etc/default/etcd
:
# ETCD_CONFIG_FILE=/etc/etcd/config.yaml
Then edit the configuration file.
When creating a systemd override, you can use this as a starting template:
[Service]
ExecStart=
ExecStart=/usr/bin/etcd --foo=bar
The empty ExecStart=
is important, otherwise systemd will attempt to run two instances of etcd.
After editing the service configuration, you need to reload systemd:
sudo systemctl daemon-reload
Check out the configuration reference for more details.
Restart the service for the changes to take effect:
sudo systemctl restart etcd