Skip to content

Commit 7fa46cb

Browse files
authored
Correct mismatched code examples (#19193)
fix a bug that code examples don't match the corresponding descriptions in section "存储Pod字段" and "存储容器字段" .
1 parent dd1d544 commit 7fa46cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ content_template: templates/task
3131

3232
在这个练习中,你将创建一个包含一个容器的pod。这是该pod的配置文件:
3333

34-
{{< codenew file="pods/inject/dapi-volume-resources.yaml" >}}
34+
{{< codenew file="pods/inject/dapi-volume.yaml" >}}
3535

3636
在配置文件中,你可以看到Pod有一个`downwardAPI`类型的Volume,并且挂载到容器中的`/etc`
3737

@@ -148,7 +148,7 @@ drwxrwxrwt 3 root root 120 Dec 5 07:00 ..
148148

149149
前面的练习中,你将Pod字段保存到DownwardAPIVolumeFile中。接下来这个练习,你将存储容器字段。这里是包含一个容器的pod的配置文件:
150150

151-
{{< codenew file="pods/inject/dapi-volume.yaml" >}}
151+
{{< codenew file="pods/inject/dapi-volume-resources.yaml" >}}
152152

153153
在这个配置文件中,你可以看到Pod有一个`downwardAPI`类型的Volume,并且挂载到容器的`/etc`目录。
154154

0 commit comments

Comments
 (0)