High availability etcd cluster with 3 nodes for distributed key-value store and service discovery. Provides consensus, configuration management, and distributed coordination for cloud-native applications.

This template deploys a highly available etcd cluster with 3 nodes for distributed consensus and configuration management.
etcd is a distributed, reliable key-value store for the most critical data of a distributed system. It's used by:
You can connect to any node in the cluster:
All nodes share the same data through replication.
# Set a value
etcdctl put mykey "myvalue"
# Get a value
etcdctl get mykey
# List all keys
etcdctl get "" --prefix
# Check cluster health
etcdctl endpoint health --cluster
# List cluster members
etcdctl member list
# Put a key
curl http://etcd1:2379/v3/kv/put \
-X POST -d '{"key":"Zm9v","value":"YmFy"}'
# Get a key
curl http://etcd1:2379/v3/kv/range \
-X POST -d '{"key":"Zm9v"}'
Each node exposes metrics and health endpoints:
http://etcd1:2379/readyz (is the node ready to serve traffic?)http://etcd1:2379/livez (does the node need a restart?)http://etcd1:2379/health (legacy, general health status)http://etcd1:2379/metrics (Prometheus metrics)/readyz - Check if ready to serve traffic (recommended for load balancers)/livez - Check if process is alive (recommended for container orchestration)/health - Legacy health check (available since v3.3.0)Use ?verbose parameter for detailed check information:
curl http://etcd1:2379/readyz?verbose
# Output:
# [+]data_corruption ok
# [+]serializable_read ok
# [+]linearizable_read ok
# ok
/health endpoint