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:
Marc
2022-05-06 12:48:27 +02:00
committed by GitHub
parent 877427c716
commit 1ddb08f081
@@ -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: