-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Nola <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Token Management | ||
--- | ||
|
||
|
||
## Server Token Rotation | ||
|
||
:::info Version Gate | ||
Available as of 2023-11 releases (v1.28.3+rke2r2, v1.27.7+rke2r2, v1.26.10+rke2r2, v1.25.15+rke2r2). | ||
::: | ||
|
||
The `rke2 token rotate` command allows you to rotate and replace the original token used for server bootstrap. After running the command on a single server, all servers and agents that used the original token should be restarted with the new token. The original token will be invalidated and cannot be used to join any new servers or agents to the cluster. | ||
|
||
Flag | Description | Default | ||
---- | ---- | ---- | ||
`--data-dir` value | Folder to hold state | /var/lib/rancher/rke2 | ||
`--kubeconfig` value | Kubeconfig for authentication to server | /etc/rancher/rke2/rke2.yaml | ||
`--server` value | Server to connect to | "https://127.0.0.1:9345" | ||
`--token` value | Existing token used to join a server or agent to a cluster | N/A | ||
`--new-token` value | New token to replace the original token | If not specified, a random 16 character token will be generated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters