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.
At a glance
Section titled “At a glance”- 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.
Lifecycle
Section titled “Lifecycle”- The record exists. The operator looks for a healthy member.
Complete=Unknown, reasonTaking. - No healthy member after 10 minutes:
Complete=False, reasonSnapshotFailed. - Before the stream starts, the operator records
takenAt, the member, the key and the recipients. - The stream ends.
Complete=True, reasonStored. The record has the size and sha256 of the plaintext and of the ciphertext. - The checks pass and the read-back agrees:
Verified=True, reasonIntact.
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.
Verified
Section titled “Verified”| 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.
| Field | Type | Description |
|---|---|---|
policyRefrequired | object | PolicyRef names the EtcdBackupPolicy.
|
namerequired | string | The name of the object. |
Status
Section titled “Status”| Field | Type | Description |
|---|---|---|
clusterName | string | ClusterName is the TalosCluster, copied from the policy when taken. |
conditions | []object | Conditions: 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). |
databaseTxID | integer (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. |
encryptedSHA256 | string | |
encryptedSize | integer (int64) | EncryptedSize and EncryptedSHA256 describe the object in the sink. |
key | string | |
location | string | Location is where the ciphertext is (s3://bucket/key, pvc://claim/key), and Key its key in the sink. |
memberID | string | |
pageSize | integer (int32) | |
raftIndex | integer (int64) | RaftIndex is the member's raft index just before the snapshot: the snapshot holds at least everything up to it. |
recipients | []string | Recipients are the age public keys it was encrypted to. |
sha256 | string | |
size | integer (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. |
takenAt | string (date-time) | TakenAt is when the snapshot was started. |
takenFrom | string | TakenFrom 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):
| Column | Value |
|---|---|
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 |
Example
Section titled “Example”$ pk-metal backup list lab$ kubectl get etcdsnapshotsNAME CLUSTER FROM SIZE COMPLETE VERIFIED TAKENlab-offsite-20261124-060000 lab node-2 48234496 True True 2026-11-24T06:00:00ZDecrypt on your own machine:
pk-metal backup decrypt lab-offsite-20261124-060000 --identity ~/.config/age/keys.txt