Skip to content

Kind · os.platform-kit.org/v1alpha1

EtcdSnapshot

An EtcdSnapshot is the record of one encrypted etcd snapshot. The bytes are in the sink of its EtcdBackupPolicy, at status.location.

Group and version
os.platform-kit.org/v1alpha1
Scope
Cluster.
Written by
The policy on its schedule, or pk-metal backup now. The operator writes the status.
Reconciled by
EtcdSnapshot controller
Conditions
Complete, Verified.
Restored by
The EtcdRecover action, after approval.
The etcd backup pipeline. A policy creates a snapshot record. The operator streams the snapshot from a healthy etcd member, verifies it, encrypts it with age, writes it to the sink, reads it back and prunes old snapshots.operator (manager process)EtcdBackupPolicyevery spec.intervalEtcdSnapshotone recordControl planea healthy follower firstcreatespicks membertalos etcd snapshotSnapshotstream from etcdVerifybbolt + sha256Encryptage recipientsSinks3 or pvcRead backhash ciphertextRetentioncount, maxAgeVerified=True
One snapshot. The operator holds only public keys: it can write a backup, but it cannot read one.
  1. The record exists. The operator looks for a healthy member. Complete=Unknown, reason Taking.
  2. No healthy member after 10 minutes: Complete=False, reason SnapshotFailed.
  3. Before the stream starts, the operator records takenAt, the member, the key and the recipients.
  4. The stream ends. Complete=True, reason Stored. The record has the size and sha256 of the plaintext and of the ciphertext.
  5. The checks pass and the read-back agrees: Verified=True, reason Intact.

A stream has 30 minutes. If the operator stops during a stream, the snapshot fails as "interrupted" and the next schedule takes a new one. A failed snapshot is final.

Reason Status Meaning
Intact True The plaintext is a valid bbolt database with the etcd hash, and the sink holds exactly the ciphertext that the operator sent.
Damaged False The plaintext is not a valid snapshot.
ReadBackFailed False The sink did not give back the same bytes.

You can restore only a verified snapshot. pk-metal restore uses the newest one unless you name another.

FieldTypeDescription
policyRefrequiredobjectPolicyRef names the EtcdBackupPolicy.
  • Rule: policyRef is frozen
namerequiredstringThe name of the object.
FieldTypeDescription
clusterNamestringClusterName is the TalosCluster, copied from the policy when taken.
conditions[]objectConditions: Complete (True once stored; False when taking it failed, which is final: the next schedule takes a new one) and Verified (the plaintext is an intact etcd snapshot and the sink holds exactly the ciphertext sent).
databaseTxIDinteger (int64)DatabaseTxID is the bbolt transaction id of the database's newest meta page, and PageSize its page size: read off the snapshot as it passed, as evidence that it is a bbolt database.
encryptedSHA256string
encryptedSizeinteger (int64)EncryptedSize and EncryptedSHA256 describe the object in the sink.
keystring
locationstringLocation is where the ciphertext is (s3://bucket/key, pvc://claim/key), and Key its key in the sink.
memberIDstring
pageSizeinteger (int32)
raftIndexinteger (int64)RaftIndex is the member's raft index just before the snapshot: the snapshot holds at least everything up to it.
recipients[]stringRecipients are the age public keys it was encrypted to.
sha256string
sizeinteger (int64)Size and SHA256 describe the plaintext snapshot (the bbolt database and etcd's 32-byte integrity hash after it): what a restore uploads. pk-metal restore checks the decrypted bytes against SHA256.
takenAtstring (date-time)TakenAt is when the snapshot was started.
takenFromstringTakenFrom is the control-plane TalosNode whose etcd member streamed it, and MemberID that member's ID (hex).

Columns of kubectl get etcdsnapshots (the columns marked wide show only with -o wide):

ColumnValue
NAME.metadata.name
CLUSTER.status.clusterName
FROM.status.takenFrom
SIZE.status.size
COMPLETE.status.conditions[?(@.type=="Complete")].status
VERIFIED.status.conditions[?(@.type=="Verified")].status
TAKEN.status.takenAt
Terminal window
$ pk-metal backup list lab
$ kubectl get etcdsnapshots
NAME CLUSTER FROM SIZE COMPLETE VERIFIED TAKEN
lab-offsite-20261124-060000 lab node-2 48234496 True True 2026-11-24T06:00:00Z

Decrypt on your own machine:

Terminal window
pk-metal backup decrypt lab-offsite-20261124-060000 --identity ~/.config/age/keys.txt