Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the usage of the k3s token CLI tool #375

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/cli/token.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ K3s supports dynamically generated, automatically expiring agent [bootstrap toke

## k3s token

K3s bootstrap tokens use the same generation and validation code as `kubeadm token` bootstrap tokens, and the `k3s token` CLI is similar.
The k3s token CLI tool handles:
* The life cycle of bootstrap tokens, using the same generation and validation code as `kubeadm token` bootstrap tokens. Note that both CLIs are similar.
* The rotation of the server token

```
NAME:
k3s token - Manage bootstrap tokens
k3s token - Manage tokens

USAGE:
k3s token command [command options] [arguments...]
Expand All @@ -88,7 +90,7 @@ COMMANDS:
delete Delete bootstrap tokens on the server
generate Generate and print a bootstrap token, but do not create it on the server
list List bootstrap tokens on the server
rotate Rotate original server token with a new bootstrap token
rotate Rotate original server token with a new server token

OPTIONS:
--help, -h show help
Expand Down
Loading