From 1ddb08f081d8949087c89d4dc97b8e77e96dc5e7 Mon Sep 17 00:00:00 2001 From: Marc <498834+cawoodm@users.noreply.github.com> Date: Fri, 6 May 2022 12:48:27 +0200 Subject: [PATCH] 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. --- content/k3s/latest/en/installation/ha-embedded/_index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/k3s/latest/en/installation/ha-embedded/_index.md b/content/k3s/latest/en/installation/ha-embedded/_index.md index 6d4bb7bab49..5ff44a95f6d 100644 --- a/content/k3s/latest/en/installation/ha-embedded/_index.md +++ b/content/k3s/latest/en/installation/ha-embedded/_index.md @@ -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: