DevOps · 5 modules

etcd

The distributed key-value store that holds all of Kubernetes, explained. Learn etcd’s data model and MVCC, leases and watches, Raft consensus and quorum, cluster operations, backup and disaster recovery — remembered with spaced repetition.

flashcards
60
flashcards
per day
~10 min
per day
level
Intermediate
level
modules
5
modules
About this topic

What is etcd?

etcd is a distributed, strongly consistent key-value store — a CNCF-graduated project best known as the datastore behind Kubernetes, where it holds every API object as the cluster’s single source of truth. When you run kubectl apply, the object ultimately lands in etcd.

This track goes past “etcd stores cluster state” into how it actually works: the flat, sorted key space with MVCC revisions, leases and watches, and the Raft consensus that keeps members in agreement — leader election, quorum, and log replication. It also covers the operational side that matters in production: membership and learners, TLS and RBAC, and disaster recovery with snapshots, compaction and defragmentation.

It uses spaced repetition so the concepts stick — the layer that decides whether your control plane stays up when a node dies.

What you'll learn

5 modules, seed to bloom

Each module is a set of flashcards — 60 in total. Answer, review, and watch your knowledge grow from seed to full bloom.

Core Concepts

Key-value model, revisions, MVCC, leases, watches, transactions and read consistency

12 cards

Raft Consensus

Leader election, quorum, terms, log replication and how etcd stays consistent under failure

12 cards

Cluster Operations

etcdctl, ports, membership, learners, TLS, RBAC, health checks and monitoring

12 cards

Backup & Disaster Recovery

Snapshots, restore, compaction, defragmentation, storage quotas, the WAL and disk latency

12 cards

Kubernetes Integration

etcd as the Kubernetes datastore — apiserver access, quorum loss, topology, /registry and leases

12 cards
Try before you plant

Sample questions

A taste of the real flashcards. Pick an answer, then reveal the explanation.

Sample · etcd

What is etcd?

  • AA distributed, strongly consistent key-value store — used to hold critical configuration and coordination data
  • BA distributed relational database — storing tables and rows queried with SQL across many nodes
  • CA distributed message queue — buffering events between producers and consumers at high throughput
  • DA distributed object cache — keeping hot data in memory to speed up reads from a slower backend
Permalink & share
Sample · etcd

How many member failures can a 5-member etcd cluster tolerate?

  • ATwo — a quorum of three remains, so the cluster keeps serving writes with two members down
  • BFour — as long as one member survives it can continue committing writes on its own
  • COne — any second failure immediately breaks consensus even though three members remain
  • DThree — a minority of two members is still enough to form a working quorum for writes
Permalink & share
Sample · etcd

What does defragmentation do in etcd?

  • AReleases the free space left after compaction — returning it from the backend file to the filesystem
  • BRemoves old key revisions from history — reclaiming the space that stale versions were using
  • CRebalances keys across members — evening out how much data each node in the cluster stores
  • DReorders keys on disk by access frequency — putting hot keys first to speed up future reads
Permalink & share
Sample · etcd

Which Kubernetes component talks to etcd?

  • AOnly the kube-apiserver — every other component reaches cluster state through the API server
  • BEvery control-plane component — the scheduler and controllers each read and write etcd directly
  • CThe kubelet on each node — it stores the node's Pod status straight into etcd as it changes
  • DBoth the apiserver and kube-proxy — the two share direct etcd access to sync Service endpoints
Permalink & share
How Gnoseed works

Learn it once, keep it for good

1

Answer a question

Each card is one practical concept with multiple options. Pick what you think is right.

2

Get the full answer

See the correct option plus a clear explanation, and a link to deeper docs when one is available.

3

Review at the right time

A spaced-repetition engine (SM-2 or FSRS) resurfaces each card just before you would forget it.

Why learn this

Why etcd is worth your time

The heart of every Kubernetes cluster

etcd holds all cluster state. When it degrades, the control plane degrades — knowing it is core to running Kubernetes.

Debug quorum and DR incidents

Lost quorum, NOSPACE alarms, slow disks — the real control-plane outages happen in etcd, and this is where you learn to reason about them.

Understand distributed consensus

Raft — leader election, quorum, log replication — is a foundational idea that recurs across modern distributed systems.

Back up and restore with confidence

Snapshots, compaction and defrag are the difference between a recoverable cluster and a lost one.

FAQ

Common questions

Do I need to know Kubernetes first? +

It helps but is not required. The track explains etcd on its own terms, then shows how Kubernetes uses it — so it works both as a Kubernetes deep-dive and as a standalone look at a distributed key-value store.

Is this just distributed-systems theory? +

No. It covers the Raft consensus ideas, but most of the deck is practical: etcdctl, membership, TLS, snapshots, compaction, defrag and the failure modes you actually hit in production.

How long does it take? +

About 10 minutes a day. Spaced repetition means short, frequent sessions beat long cramming, so the concepts stick.

Is it free? +

Yes, completely free. No registration or credit card is required, and all your progress is stored locally in your browser.

Ready to master etcd?

Plant your first seed today. Ten minutes a day is all it takes to understand what keeps Kubernetes running.

Start learning free