From f9db924665c1b273106ca7947d0ea78d13528cc9 Mon Sep 17 00:00:00 2001 From: Changjian Gao Date: Mon, 29 Jul 2024 13:52:01 +0800 Subject: [PATCH] Docs: fix broken link --- docs/en/cookbook/csi-in-nomad.md | 2 +- docs/en/guide/pv.md | 6 +++--- docs/zh_cn/cookbook/csi-in-nomad.md | 6 +++++- docs/zh_cn/guide/pv.md | 10 +++++----- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/en/cookbook/csi-in-nomad.md b/docs/en/cookbook/csi-in-nomad.md index f412606b22..6a1f904889 100644 --- a/docs/en/cookbook/csi-in-nomad.md +++ b/docs/en/cookbook/csi-in-nomad.md @@ -253,7 +253,7 @@ secrets { ``` - `name`: JuiceFS file system name -- `token`: JuiceFS managed token. Read [this document](https://juicefs.com/docs/cloud/metadata#token-management) for more details. +- `token`: JuiceFS managed token. Read [this document](https://juicefs.com/docs/cloud/acl#access-token) for more details. - `access-key`: Object storage access key - `secret-key`: Object storage secret key diff --git a/docs/en/guide/pv.md b/docs/en/guide/pv.md index 7a4d861f72..20a2eda508 100644 --- a/docs/en/guide/pv.md +++ b/docs/en/guide/pv.md @@ -24,7 +24,7 @@ Although in the examples below, secrets are usually named `juicefs-secret`, they Create Kubernetes Secret: -```yaml {7-16} +```yaml apiVersion: v1 kind: Secret metadata: @@ -65,7 +65,7 @@ Before continue, you should have already [created a file system](https://juicefs Create Kubernetes Secret: -```yaml {7-14} +```yaml apiVersion: v1 kind: Secret metadata: @@ -102,7 +102,7 @@ For Cloud Service, the `juicefs auth` command is somewhat similar to the `juicef The JuiceFS Web Console is in charge of client authentication and distributing configuration files. In an on-premises deployment, the console address won't be [https://juicefs.com/console](https://juicefs.com/console), so it's required to specify the address for JuiceFS Web Console through `envs` field in volume credentials. -```yaml {12-13} +```yaml {15-16} apiVersion: v1 metadata: name: juicefs-secret diff --git a/docs/zh_cn/cookbook/csi-in-nomad.md b/docs/zh_cn/cookbook/csi-in-nomad.md index 03a5c60df5..0f59cf3e31 100644 --- a/docs/zh_cn/cookbook/csi-in-nomad.md +++ b/docs/zh_cn/cookbook/csi-in-nomad.md @@ -249,13 +249,17 @@ plugin_id = "juicefs0" secrets { name="juicefs-volume" token="**********" + access-key="*****" + secret-key="*****" } ``` 其中: - `name`:JuiceFS 文件系统名称 -- `token`:JuiceFS 管理 token。更多信息参考[这篇文档](https://juicefs.com/docs/zh/cloud/metadata#令牌管理) +- `token`:JuiceFS 管理 token。更多信息参考[这篇文档](https://juicefs.com/docs/zh/cloud/acl#access-token) +- `access-key`:对象存储的 access key。 +- `secret-key`:对象存储的 secret key。 创建 volume: diff --git a/docs/zh_cn/guide/pv.md b/docs/zh_cn/guide/pv.md index 9e06cb52d4..1056e5ba98 100644 --- a/docs/zh_cn/guide/pv.md +++ b/docs/zh_cn/guide/pv.md @@ -24,7 +24,7 @@ sidebar_position: 1 创建 Kubernetes Secret: -```yaml {7-16} +```yaml apiVersion: v1 kind: Secret metadata: @@ -65,7 +65,7 @@ stringData: 创建 Kubernetes Secret: -```yaml {7-14} +```yaml apiVersion: v1 kind: Secret metadata: @@ -89,7 +89,7 @@ stringData: 字段说明: - `name`:JuiceFS 文件系统名称 -- `token`:访问 JuiceFS 文件系统所需的 token。更多信息参考[访问令牌](https://juicefs.com/docs/zh/cloud/acl/#%E8%AE%BF%E9%97%AE%E4%BB%A4%E7%89%8C)。 +- `token`:访问 JuiceFS 文件系统所需的 token。更多信息参考[访问令牌](https://juicefs.com/docs/zh/cloud/acl#access-token)。 - `access-key`/`secret-key`:对象存储的认证信息 - `envs`:Mount Pod 的环境变量 - `format-options`:云服务 [`juicefs auth`](https://juicefs.com/docs/zh/cloud/commands_reference#auth) 命令所使用的的参数,作用是认证,以及生成挂载的配置文件 @@ -102,7 +102,7 @@ stringData: JuiceFS Web 控制台负责着客户端的挂载认证、配置文件下发等工作。而在私有部署环境中,控制台的地址不再是 [https://juicefs.com/console](https://juicefs.com/console),因此需要在文件系统认证信息中通过 `envs` 字段额外指定控制台地址。 -```yaml {12-13} +```yaml {15-16} apiVersion: v1 metadata: name: juicefs-secret @@ -126,7 +126,7 @@ stringData: 字段说明: - `name`:JuiceFS 文件系统名称 -- `token`:访问 JuiceFS 文件系统所需的 token。更多信息参考[访问令牌](https://juicefs.com/docs/zh/cloud/acl/#%E8%AE%BF%E9%97%AE%E4%BB%A4%E7%89%8C)。 +- `token`:访问 JuiceFS 文件系统所需的 token。更多信息参考[访问令牌](https://juicefs.com/docs/zh/cloud/acl#access-token)。 - `access-key`/`secret-key`:对象存储的认证信息 - `envs`:Mount Pod 的环境变量,在私有部署中需要额外填写 `BASE_URL`、`CFG_URL`,指向实际控制台地址 - `format-options`:云服务 [`juicefs auth`](https://juicefs.com/docs/zh/cloud/commands_reference#auth) 命令所使用的的参数,作用是认证,以及生成挂载的配置文件。该选项仅在 v0.13.3 及以上可用