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 1/3] 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: From 29d6368decb95bffc300a9a977fd448086dff819 Mon Sep 17 00:00:00 2001 From: Marc <498834+cawoodm@users.noreply.github.com> Date: Thu, 19 May 2022 19:59:57 +0200 Subject: [PATCH 2/3] Update content/k3s/latest/en/installation/ha-embedded/_index.md Co-authored-by: Derek Nola --- content/k3s/latest/en/installation/ha-embedded/_index.md | 1 - 1 file changed, 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 5ff44a95f6d..98f1fd4d317 100644 --- a/content/k3s/latest/en/installation/ha-embedded/_index.md +++ b/content/k3s/latest/en/installation/ha-embedded/_index.md @@ -15,7 +15,6 @@ 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 -export INSTALL_K3S_VERSION=v1.23.6+k3s1 curl -sfL https://get.k3s.io | sh -s - server --cluster-init ``` From b128c560d4b47b08eda62f548760ba9ae16b957a Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 7 Jun 2022 15:42:23 -0700 Subject: [PATCH 3/3] Consolidate changes to single line --- content/k3s/latest/en/installation/ha-embedded/_index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/k3s/latest/en/installation/ha-embedded/_index.md b/content/k3s/latest/en/installation/ha-embedded/_index.md index 98f1fd4d317..6b7f3421815 100644 --- a/content/k3s/latest/en/installation/ha-embedded/_index.md +++ b/content/k3s/latest/en/installation/ha-embedded/_index.md @@ -14,8 +14,7 @@ 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 -curl -sfL https://get.k3s.io | sh -s - server --cluster-init +curl -sfL https://get.k3s.io | K3S_TOKEN=SECRET sh -s - server --cluster-init ``` After launching the first server, join the second and third servers to the cluster using the shared secret: