etcd snapshot
A point-in-time copy of the whole etcd database, which is the backup of a Kubernetes cluster's state.
A leaked snapshot exposes every Secret in the cluster.
In more detail
It contains every object, including Secrets, so encrypt it, restrict access and keep it somewhere the cluster cannot delete. Record a checksum so you can prove the copy was not damaged in transfer. A snapshot is only a backup once a restore from it has been tested on an isolated control plane.
Examples
etcdctl snapshot save /secure/etcd/snapshot.dbsha256sum /secure/etcd/snapshot.dbRelated terms
- etcd — The distributed key-value store where Kubernetes keeps all cluster data, including every Secret.
- etcdctl — The command-line client for etcd, used to read keys, check member health and save or check snapshots.
- disaster recovery — The planned, tested procedure for getting a system and its data back after a serious failure, such as lost storage or a deleted cluster.
- quorum — The minimum number of members, more than half, that must agree before a replicated system accepts a change.
Taught in
- Control Plane: etcd, API Server, Scheduler, Controllers — Kubernetes: Production-Grade Container Orchestration
- StatefulSets, Stable Identity And Data Recovery — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: OOMKilled, Throttling And Evictions — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Forbidden Requests And Admission Rejections — Kubernetes: Production-Grade Container Orchestration
- Drain, Upgrade, Version Skew And Certificate Maintenance — Kubernetes: Production-Grade Container Orchestration
- etcd Snapshots And A Tested Restore — Kubernetes: Production-Grade Container Orchestration