From 7fa46cb10601e1f5068da08178f7f38a276031ae Mon Sep 17 00:00:00 2001 From: LogX2 <50541066+LogX2@users.noreply.github.com> Date: Fri, 6 Mar 2020 15:13:23 +0800 Subject: [PATCH] Correct mismatched code examples (#19193) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix a bug that code examples don't match the corresponding descriptions in section "存储Pod字段" and "存储容器字段" . --- .../downward-api-volume-expose-pod-information.md | 4 ++-- 1 file changed, 2 insertions(+), 2 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 f00d36d457..e702a8dcf2 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 @@ -31,7 +31,7 @@ content_template: templates/task 在这个练习中,你将创建一个包含一个容器的pod。这是该pod的配置文件: -{{< codenew file="pods/inject/dapi-volume-resources.yaml" >}} +{{< codenew file="pods/inject/dapi-volume.yaml" >}} 在配置文件中,你可以看到Pod有一个`downwardAPI`类型的Volume,并且挂载到容器中的`/etc`。 @@ -148,7 +148,7 @@ drwxrwxrwt 3 root root 120 Dec 5 07:00 .. 前面的练习中,你将Pod字段保存到DownwardAPIVolumeFile中。接下来这个练习,你将存储容器字段。这里是包含一个容器的pod的配置文件: -{{< codenew file="pods/inject/dapi-volume.yaml" >}} +{{< codenew file="pods/inject/dapi-volume-resources.yaml" >}} 在这个配置文件中,你可以看到Pod有一个`downwardAPI`类型的Volume,并且挂载到容器的`/etc`目录。