etcd: Kubernetes Source of Truth
etcd is the distributed key-value store that stores all Kubernetes cluster state using Raft consensus.
etcd: Kubernetes Source of Truth
etcd is the distributed key-value store that stores all Kubernetes cluster state using Raft consensus.
What you'll learn
- etcd = K8s source of truth (all objects stored here)
- Raft quorum: 3 nodes tolerate 1 failure, 5 nodes tolerate 2
- etcd is the highest-risk component — back up daily, monitor disk I/O
How etcd Works
etcd uses Raft consensus algorithm to maintain consistency across 3+ nodes. Raft elects a leader per term; all writes go through the leader and are replicated to followers before committing. etcd stores all K8s objects as protobufs in a hierarchical namespace (/registry/pods, /registry/services, etc.).
Key takeaways
- etcd = K8s source of truth (all objects stored here)
- Raft quorum: 3 nodes tolerate 1 failure, 5 nodes tolerate 2
- etcd is the highest-risk component — back up daily, monitor disk I/O
Related concepts
Explore topics that connect to this one.
Ready to see how this works in the cloud?
Switch to Career Paths for structured paths (e.g. Developer, DevOps) and provider-specific lessons.
View role-based pathsSign in to track your progress and mark lessons complete.
Discussion
Questions? Discuss in the community or start a thread below.
Join DiscordIn-app Q&A
Sign in to start or join a thread.