Skip to content

Commit

Permalink
Update Chinese docs (k3s-io#151)
Browse files Browse the repository at this point in the history
Signed-off-by: vickyhella <[email protected]>
  • Loading branch information
vickyhella authored Jul 12, 2023
1 parent cd0f716 commit ab88093
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ K3s 支持以下数据存储选项:
* [MariaDB](https://mariadb.org/)(针对版本 10.6.8 进行了认证)
* [PostgreSQL](https://www.postgresql.org/)(针对版本 10.7、11.5 和 14.2 进行了认证)

:::caution 准备语句支持
K3s 需要 DB 的准备语句支持。换言之,[PgBouncer](https://www.pgbouncer.org/faq.html#how-to-use-prepared-statements-with-transaction-pooling) 之类的连接池将无法与 K3s 一起使用。
:::

### 外部数据存储配置参数
如果你希望使用外部数据存储(例如 PostgreSQL、MySQL 或 etcd),你必须设置 `datastore-endpoint` 参数,以便 K3s 知道如何连接到外部数据存储。你也可以指定参数来配置连接的认证和加密。下表总结了这些参数,它们可以作为 CLI 标志或环境变量传递:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ mirrors:

然后,将镜像重新标记到私有镜像仓库。

示例:`docker tag coredns-coredns:1.6.3 mycustomreg.com:5000/coredns-coredns`
示例:`docker tag rancher/coredns-coredns:1.6.3 mycustomreg.com:5000/coredns-coredns`

最后,将镜像推送到私有镜像仓库。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ Flannel 依赖 [Bridge CNI 插件](https://www.cni.dev/plugins/current/main/brid

### 数据库

K3s 支持不同的数据库,包括 MySQL、PostgreSQL、MariaDB 和 etcd,以下是运行大型集群所需的数据库资源的大小指南:
K3s 支持不同的数据库,包括 MySQL、PostgreSQL、MariaDB 和 etcd。有关详细信息,请参阅[集群数据存储](../datastore/datastore.md)

以下是运行大型集群所需的数据库资源的大小指南:

| 部署规模 | 节点 | VCPUS | RAM |
|:---------------:|:---------:|:-----:|:-----:|
Expand All @@ -129,4 +131,3 @@ K3s 支持不同的数据库,包括 MySQL、PostgreSQL、MariaDB 和 etcd,
| Large | Up to 250 | 4 | 16GB |
| X-Large | Up to 500 | 8 | 32GB |
| XX-Large | 500+ | 16 | 64GB |

13 changes: 3 additions & 10 deletions i18n/zh/docusaurus-plugin-content-docs/current/upgrades/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,18 @@ weight: 10
例如,要升级到当前的稳定版本:

```sh
curl -sfL https://get.k3s.io | sh -
curl -sfL https://get.k3s.io | <EXISTING_K3S_ENV> sh -s - <EXISTING_K3S_ARGS>
```

:::note
中国用户,可以使用以下方法加速安装:
```
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -
```
:::

如果想升级到特定 channel(如 latest)中的更新版本,你可以指定 channel:
```sh
curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest sh -
curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest <EXISTING_K3S_ENV> sh -s - <EXISTING_K3S_ARGS>
```

如果要升级到特定版本,可以运行以下命令:

```sh
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=vX.Y.Z-rc1 sh -
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=vX.Y.Z-rc1 <EXISTING_K3S_ENV> sh -s - <EXISTING_K3S_ARGS>
```

### 使用二进制文件手动升级 K3s
Expand Down

0 comments on commit ab88093

Please sign in to comment.