Skip to content

Conversation

@manuelbuil
Copy link
Contributor

@manuelbuil manuelbuil commented Jul 21, 2025

This PR tries to improve our current K3s etcd-snapshot docs to make it easier to read. I haven't changed a lot of text but mostly I moved it around.

The page now starts with a brief introduction, explaining the 4 different types of snapshots (local-s3, on-demand-scheduled) and showing the CLI subcommands. Then it describes how to create snapshots, separating "scheduled" and "on-demand" with tabs, as these two use options differently. Then how to delete snapshots, explaining the difference between "delete" and "prune". Once these are clear, we explain how to connect to S3 and insist on "replication" (it is not either/or). Then, it moves to the restoring of snapshots and the steps. And finally, it explains the ETCDSnapshotFile CR, which I believe is for advanced users.

I also removed the "default" key word in a couple of networking docs because all tabs had it.

@manuelbuil manuelbuil force-pushed the etcdSnapshotRefresher branch from 5255ede to 5803479 Compare July 21, 2025 14:23
@manuelbuil manuelbuil requested review from brandond and dereknola July 22, 2025 15:10
Copy link
Member

@brandond brandond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one final nit about informal language

Scheduled snapshots are enabled by default, at 00:00 and 12:00 system time, with 5 snapshots retained. Scheduled snapshots have a name that starts with `etcd-snapshot`, followed by the node name and timestamp.

### On-demand Snapshots
These are the configuration options that we can set for scheduled snapshots:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a little informal, how about:

Suggested change
These are the configuration options that we can set for scheduled snapshots:
The following options control the operation of scheduled snapshots:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good


These flags are valid for both `k3s server` and `k3s etcd-snapshot`, however when passed to `k3s etcd-snapshot` the `--etcd-` prefix can be omitted to avoid redundancy.
Flags can be passed in with the command line, or in the [configuration file,](../installation/configuration.md#configuration-file ) which may be easier to use.
These are the configuration options that we can set for on-demand snapshots:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
These are the configuration options that we can set for on-demand snapshots:
The following options control the operation of on-demand snapshots:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, reads more professional

@manuelbuil manuelbuil force-pushed the etcdSnapshotRefresher branch from 8f4acee to bc9fa77 Compare July 31, 2025 06:43
@manuelbuil manuelbuil merged commit 72100bc into k3s-io:main Jul 31, 2025
3 checks passed
@manuelbuil manuelbuil deleted the etcdSnapshotRefresher branch July 31, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants