Skip to main content
Kubernetes is stateful: it maintains the desired and current state of the cluster. Most control-plane components (API server, scheduler, controller-manager) are stateless — they do not persist cluster-wide state between restarts. The component that provides durable persistence for the entire cluster is etcd. All cluster state lives in etcd. etcd is a lightweight, distributed key-value store. Treat a key as a name (for example, the name of your app) and the value as the full description of that object (for example, which image to run and how many replicas you want).
A dark-themed diagram illustrating etcd as a small key-value store, with the key "my-app" on the left and the value "run nginx — 5 copies" on the right.
A key might also hold sensitive data (for example, a database password). Note: Kubernetes Secrets are stored in etcd (base64-encoded) by default. They are not encrypted at rest unless you enable EncryptionConfiguration or use an external secrets store. Protect etcd and snapshots accordingly. When you run a declarative command like kubectl apply that specifies five replicas, the desired state is written into etcd via the API server:
app.yaml (minimal example):
Controllers, the scheduler, and kubelets continuously read the desired state (from the API server backed by etcd) and work to make the cluster converge to that state.
Teams sometimes assume that running multiple API servers alone makes the control plane highly available while overlooking etcd. If etcd is a single instance, it becomes a single point of failure — losing it prevents the cluster from knowing its desired state.
A stylized diagram titled "Where Teams Get It Wrong" showing a Kubernetes control plane with three replicated API server icons across Node 1–3 on the left and a single etcd instance (shown split/broken) on the right. It illustrates the false sense of high availability when etcd is only a single copy.
To protect the cluster, follow these core best practices:
  1. Run etcd as a small cluster (an odd number of members — typically 3 or 5). Raft consensus requires a quorum; with 3 members you can tolerate one failure, with 5 you can tolerate two.
  2. Automate frequent, external snapshots of etcd and store them outside the cluster so they are available even if the cluster fails.
Quick reference — etcd protection options: Example: create a local snapshot with etcdctl (etcd v3):
Store snapshots off-cluster (for example, upload to object storage). Example using AWS CLI to copy to S3:
Automate snapshot creation and upload (cron, systemd timers, or your backup system) and verify restores regularly.
Run etcd as a 3- or 5-member cluster (odd members for quorum) and automate frequent snapshots. With regular, off-cluster backups of etcd, you effectively back up your entire Kubernetes control plane state.
If you back up etcd, you have backed up your cluster state. Conversely, if you lose etcd and lack a recent snapshot, API server redundancy and node-level replication cannot restore the control-plane state — recovery becomes far more difficult and time-consuming. Links and references

Watch Video