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.db
sha256sum /secure/etcd/snapshot.db

Related terms

Taught in

References