From d7d0131e1279845425f0786fd7253d31b7bb59e0 Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Sat, 9 Jan 2021 13:20:49 +0800 Subject: [PATCH] [zh] fix volume mount path --- .../downward-api-volume-expose-pod-information.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md b/content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md index fff6a8066a..df9185b889 100644 --- a/content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md +++ b/content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md @@ -60,7 +60,8 @@ The first element specifies that the value of the Pod's The second element specifies that the value of the Pod's `annotations` field should be stored in a file named `annotations`. --> -在配置文件中,你可以看到 Pod 有一个 `downwardAPI` 类型的卷,并且挂载到容器中的 `/etc` 目录。 +在配置文件中,你可以看到 Pod 有一个 `downwardAPI` 类型的卷,并且挂载到容器中的 +`/etc/podinfo` 目录。 查看 `downwardAPI` 下面的 `items` 数组。 每个数组元素都是一个 @@ -133,7 +134,7 @@ In your shell, view the `labels` file: 在该 Shell中,查看 `labels` 文件: ```shell -/# cat /etc/labels +/# cat /etc/podinfo/labels ``` -在这个配置文件中,你可以看到 Pod 有一个 `downwardAPI` 类型的卷,并且挂载到容器的 `/etc/podinfo` 目录。 +在这个配置文件中,你可以看到 Pod 有一个 `downwardAPI` 类型的卷,并且挂载到容器的 +`/etc/podinfo` 目录。 查看 `downwardAPI` 下面的 `items` 数组。每个数组元素都是一个 DownwardAPIVolumeFile。 @@ -271,7 +273,7 @@ In your shell, view the `cpu_limit` file: 在 Shell 中,查看 `cpu_limit` 文件: ```shell -/# cat /etc/cpu_limit +/# cat /etc/podinfo/cpu_limit ```