What is etcd?
A distributed key-value store used by Kubernetes to store all cluster state and configuration. etcd is the single source of truth for the entire cluster.
etcd explained
How it works. etcd is a strongly consistent key-value store that uses the Raft consensus algorithm. Every Kubernetes object — Deployments, Secrets, ConfigMaps, node status — is stored in etcd, and only the API server talks to it. A cluster of 3 or 5 etcd members tolerates the loss of 1 or 2 members respectively; with an even number you gain nothing.
In practice. Back it up with etcdctl snapshot save and test restores; losing etcd without a backup means losing the cluster's state. etcd is sensitive to disk latency, so control-plane nodes should have fast SSD/NVMe storage.
Common pitfalls.
- ›Running out of the database quota (2 GiB by default): writes fail until you compact, defragment or raise
--quota-backend-bytes. - ›Backups never restored in a test — they are only proven when a restore works.
- ›Two control-plane nodes: no more fault tolerance than one, with more ways to lose quorum.
Related tool
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Related Calculators
etcd Backup Size
Estimate the size of etcd snapshots and monthly backup storage for your Kubernetes cluster. Plan S3 storage costs for etcd backup retention.
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Related Generators
Related Comparisons
k3s vs kubeadm Kubernetes
k3s vs kubeadm — which Kubernetes distribution is right for your self-hosted cluster? Compare setup time, resource overhead, HA complexity, and production suitability.
kubeadm vs RKE2
kubeadm vs RKE2 (Rancher Government) — compare security hardening, setup complexity, FIPS compliance, and production suitability for self-managed Kubernetes clusters.