mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 13:08:11 +00:00
Update placeholder format of other values in commands of other instances
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> ./install.sh
|
|||||||
Install K3s on each agent:
|
Install K3s on each agent:
|
||||||
|
|
||||||
```
|
```
|
||||||
INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> K3S_URL=<SERVER>:6443 K3S_TOKEN=<TOKEN> ./install.sh
|
INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> K3S_URL=https://<SERVER>:6443 K3S_TOKEN=<TOKEN> ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `<SERVER>` is the IP or valid DNS of the server and `<TOKEN>` is the node-token from the server found at `/var/lib/rancher/k3s/server/node-token`.
|
Where `<SERVER>` is the IP or valid DNS of the server and `<TOKEN>` is the node-token from the server found at `/var/lib/rancher/k3s/server/node-token`.
|
||||||
|
|||||||
+4
-2
@@ -34,14 +34,16 @@ To specify the K3s (Kubernetes) version, use the INSTALL_K3S_VERSION (e.g., `INS
|
|||||||
|
|
||||||
On the first node, create a new cluster:
|
On the first node, create a new cluster:
|
||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> K3S_TOKEN=your_secret sh -s - server --cluster-init
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> K3S_TOKEN=<TOKEN> sh -s - server --cluster-init
|
||||||
```
|
```
|
||||||
|
|
||||||
And then join the other nodes:
|
And then join the other nodes:
|
||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> K3S_TOKEN=your_secret sh -s - server --server https://<ip or hostname of server1>:6443
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> K3S_TOKEN=<TOKEN> sh -s - server --server https://<SERVER>:6443
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Where `<SERVER>` is the IP or valid DNS of the server and `<TOKEN>` is the node-token from the server found at `/var/lib/rancher/k3s/server/node-token`.
|
||||||
|
|
||||||
For more information on installing K3s see the [K3s installation docs](https://docs.k3s.io/installation).
|
For more information on installing K3s see the [K3s installation docs](https://docs.k3s.io/installation).
|
||||||
|
|
||||||
To have a look at your cluster run:
|
To have a look at your cluster run:
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ When running the command to start the K3s Kubernetes API server, you will pass i
|
|||||||
1. On the Linux node, run this command to start the K3s server and connect it to the external datastore:
|
1. On the Linux node, run this command to start the K3s server and connect it to the external datastore:
|
||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||||
--datastore-endpoint="mysql://username:password@tcp(hostname:3306)/database-name"
|
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Where `<DATASTORE_ENDPOINT>` is the connection URI for your datastore. For example, `mysql://username:password@tcp(hostname:3306)/database-name` if you're using MySQL. Valid datastores include etcd, MySQL, PostgreSQL, or SQLite (default).
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
|
|
||||||
The datastore endpoint can also be passed in using the environment variable `$K3S_DATASTORE_ENDPOINT`.
|
The datastore endpoint can also be passed in using the environment variable `$K3S_DATASTORE_ENDPOINT`.
|
||||||
|
|||||||
+1
-1
@@ -83,7 +83,7 @@ INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> ./install.sh
|
|||||||
Install K3s on each agent:
|
Install K3s on each agent:
|
||||||
|
|
||||||
```
|
```
|
||||||
INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> K3S_URL=<SERVER>:6443 K3S_TOKEN=<TOKEN> ./install.sh
|
INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_VERSION=<VERSION> K3S_URL=https://<SERVER>:6443 K3S_TOKEN=<TOKEN> ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `<SERVER>` is the IP or valid DNS of the server and `<TOKEN>` is the node-token from the server found at `/var/lib/rancher/k3s/server/node-token`.
|
Where `<SERVER>` is the IP or valid DNS of the server and `<TOKEN>` is the node-token from the server found at `/var/lib/rancher/k3s/server/node-token`.
|
||||||
|
|||||||
+3
-1
@@ -34,9 +34,11 @@ When running the command to start the K3s Kubernetes API server, you will pass i
|
|||||||
1. On the Linux node, run this command to start the K3s server and connect it to the external datastore:
|
1. On the Linux node, run this command to start the K3s server and connect it to the external datastore:
|
||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||||
--datastore-endpoint="mysql://username:password@tcp(hostname:3306)/database-name"
|
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Where `<DATASTORE_ENDPOINT>` is the connection URI for your datastore. For example, `mysql://username:password@tcp(hostname:3306)/database-name` if you're using MySQL. Valid datastores include etcd, MySQL, PostgreSQL, or SQLite (default).
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
|
|
||||||
The datastore endpoint can also be passed in using the environment variable `$K3S_DATASTORE_ENDPOINT`.
|
The datastore endpoint can also be passed in using the environment variable `$K3S_DATASTORE_ENDPOINT`.
|
||||||
|
|||||||
Reference in New Issue
Block a user