mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 04:28:15 +00:00
Merge pull request #728 from vickyhella/vk-bilingual
Update Chinese translation
This commit is contained in:
@@ -32,30 +32,30 @@ When running the command to start the K3s Kubernetes API server, you will pass i
|
||||
|
||||
1. Connect to one of the Linux nodes that you have prepared to run the Rancher server.
|
||||
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 \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--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).
|
||||
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. Get main server node token:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. Run command on your second K3s server node:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. Confirm that K3s is Running
|
||||
|
||||
|
||||
+19
-9
@@ -32,20 +32,30 @@ Rancher 需要安装在支持的 Kubernetes 版本上。如需了解你使用的
|
||||
|
||||
1. 连接到你准备用于运行 Rancher Server 的其中一个 Linux 节点。
|
||||
1. 在 Linux 节点上,运行以下命令来启动 K3s Server,并将其连接到外部数据存储。
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
|
||||
:::note
|
||||
:::note
|
||||
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
|
||||
:::
|
||||
:::
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行同样的命令。
|
||||
1. 获取主 Server 节点令牌:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行命令:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. 检查 K3s 是否正常运行
|
||||
|
||||
|
||||
+19
-9
@@ -32,20 +32,30 @@ Rancher 需要安装在支持的 Kubernetes 版本上。如需了解你使用的
|
||||
|
||||
1. 连接到你准备用于运行 Rancher Server 的其中一个 Linux 节点。
|
||||
1. 在 Linux 节点上,运行以下命令来启动 K3s Server,并将其连接到外部数据存储。
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
|
||||
:::note
|
||||
:::note
|
||||
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
|
||||
:::
|
||||
:::
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行同样的命令。
|
||||
1. 获取主 Server 节点令牌:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行命令:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. 检查 K3s 是否正常运行
|
||||
|
||||
|
||||
+19
-9
@@ -32,20 +32,30 @@ Rancher 需要安装在支持的 Kubernetes 版本上。如需了解你使用的
|
||||
|
||||
1. 连接到你准备用于运行 Rancher Server 的其中一个 Linux 节点。
|
||||
1. 在 Linux 节点上,运行以下命令来启动 K3s Server,并将其连接到外部数据存储。
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
其中 `<DATASTORE_ENDPOINT>` 是数据存储的连接 URI。例如,如果你使用的是 MySQL,则为 `mysql://username:password@tcp(hostname:3306)/database-name`。有效的数据存储包括 etcd、MySQL、PostgreSQL 或 SQLite(默认)。
|
||||
|
||||
:::note
|
||||
:::note
|
||||
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
你也可以使用 `$K3S_DATASTORE_ENDPOINT` 环境变量来传递数据存储端点。
|
||||
|
||||
:::
|
||||
:::
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行同样的命令。
|
||||
1. 获取主 Server 节点令牌:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. 在第二个 K3s Server 节点上运行命令:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. 检查 K3s 是否正常运行
|
||||
|
||||
|
||||
+16
-16
@@ -32,30 +32,30 @@ When running the command to start the K3s Kubernetes API server, you will pass i
|
||||
|
||||
1. Connect to one of the Linux nodes that you have prepared to run the Rancher server.
|
||||
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 \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--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).
|
||||
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. Get main server node token:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. Run command on your second K3s server node:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. Confirm that K3s is Running
|
||||
|
||||
|
||||
+16
-16
@@ -32,30 +32,30 @@ When running the command to start the K3s Kubernetes API server, you will pass i
|
||||
|
||||
1. Connect to one of the Linux nodes that you have prepared to run the Rancher server.
|
||||
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 \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--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).
|
||||
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. Get main server node token:
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
```
|
||||
cat /var/lib/rancher/k3s/server/token
|
||||
```
|
||||
|
||||
1. Run command on your second K3s server node:
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
```
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=<VERSION> sh -s - server \
|
||||
--datastore-endpoint="<DATASTORE_ENDPOINT>" \
|
||||
--token "<MAIN_SERVER_NODE_TOKEN>"
|
||||
```
|
||||
|
||||
### 2. Confirm that K3s is Running
|
||||
|
||||
|
||||
Reference in New Issue
Block a user