mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
Show example using installer
The current doc assumes that k3s is already installed. As most users use the installer to initiate a cluster it is confusing not having an example with the installer.
This commit is contained in:
@@ -14,7 +14,9 @@ To run K3s in this mode, you must have an odd number of server nodes. We recomme
|
||||
|
||||
To get started, first launch a server node with the `cluster-init` flag to enable clustering and a token that will be used as a shared secret to join additional servers to the cluster.
|
||||
```
|
||||
K3S_TOKEN=SECRET k3s server --cluster-init
|
||||
K3S_TOKEN=SECRET
|
||||
export INSTALL_K3S_VERSION=v1.23.6+k3s1
|
||||
curl -sfL https://get.k3s.io | sh -s - server --cluster-init
|
||||
```
|
||||
|
||||
After launching the first server, join the second and third servers to the cluster using the shared secret:
|
||||
|
||||
Reference in New Issue
Block a user