mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-20 11:55:12 +00:00
Add config flags that must be shared across server nodes
Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
@@ -23,3 +23,9 @@ K3S_TOKEN=SECRET k3s server --server https://<ip or hostname of server1>:6443
|
||||
```
|
||||
|
||||
Now you have a highly available control plane. Joining additional worker nodes to the cluster follows the same procedure as a single server cluster.
|
||||
|
||||
There are a few config flags that must be the same in all server nodes:
|
||||
|
||||
* Network related flags: `--cluster-dns`, `--cluster-domain`, `--cluster-cidr`, `--service-cidr`
|
||||
* Flags controlling the deployment of certain components: `--disable-helm-controller`, `--disable-kube-proxy`, `--disable-network-policy` and any component passed to `--disable`
|
||||
* Feature related flags: `--secrets-encryption`
|
||||
|
||||
@@ -80,6 +80,12 @@ curl -sfL https://get.k3s.io | sh -s - server \
|
||||
--datastore-endpoint="mysql://username:password@tcp(hostname:3306)/database-name"
|
||||
```
|
||||
|
||||
There are a few config flags that must be the same in all server nodes:
|
||||
|
||||
* Network related flags: `--cluster-dns`, `--cluster-domain`, `--cluster-cidr`, `--service-cidr`
|
||||
* Flags controlling the deployment of certain components: `--disable-helm-controller`, `--disable-kube-proxy`, `--disable-network-policy` and any component passed to `--disable`
|
||||
* Feature related flags: `--secrets-encryption`
|
||||
|
||||
> **Note:** Ensure that you retain a copy of this token as it is required when restoring from backup and adding nodes. Previously, K3s did not enforce the use of a token when using external SQL datastores.
|
||||
|
||||
### 5. Optional: Join Agent Nodes
|
||||
|
||||
Reference in New Issue
Block a user