💡 This is a multi-node playground for etcd. For a simpler setup, try the single-node playground.
Use etcdctl
to interact with etcd on the local host:
etcdctl version
etcdctl endpoint health
To view the cluster members, run:
etcdctl member list
Some commands can be run against the cluster:
etcdctl endpoint health --cluster
etcdctl endpoint status --cluster
To set the endpoints for etcdctl
to all nodes (client side load balancing):
export ETCDCTL_ENDPOINTS=$(etcdctl member list -w json | jq -r '[.members[].clientURLs[]] | join(",")')
💡 Check out the official tutorials for learning more about etcd.
Check out the single-node playground for more tips on using etcd.