Skip to content

Commit 00aee17

Browse files
authored
Merge pull request #36584 from Michelle951/michelle009
[zh] sync configure-projected-volume-storage.md
2 parents 9a61519 + 7a14b83 commit 00aee17

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

content/zh-cn/docs/tasks/configure-pod-container/configure-projected-volume-storage.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ weight: 70
1515

1616
<!-- overview -->
1717
<!--
18-
This page shows how to use a [`projected`](/docs/concepts/storage/volumes/#projected) volume to mount
18+
This page shows how to use a [`projected`](/docs/concepts/storage/volumes/#projected) Volume to mount
1919
several existing volume sources into the same directory. Currently, `secret`, `configMap`, `downwardAPI`,
2020
and `serviceAccountToken` volumes can be projected.
2121
-->
@@ -39,14 +39,17 @@ and `serviceAccountToken` volumes can be projected.
3939
<!--
4040
## Configure a projected volume for a pod
4141
42-
In this exercise, you create username and password Secrets from local files. You then create a Pod that runs one Container, using a [`projected`](/docs/concepts/storage/volumes/#projected) Volume to mount the Secrets into the same shared directory.
42+
In this exercise, you create username and password {{< glossary_tooltip text="Secrets" term_id="secret" >}} from local files.
43+
You then create a Pod that runs one container, using a [`projected`](/docs/concepts/storage/volumes/#projected) Volume
44+
to mount the Secrets into the same shared directory.
4345
4446
Here is the configuration file for the Pod:
4547
-->
4648

47-
## 为 Pod 配置 projected 卷
49+
## 为 Pod 配置投射卷
4850

49-
本练习中,你将从本地文件来创建包含有用户名和密码的 Secret。然后创建运行一个容器的 Pod,
51+
本练习中,你将使用本地文件来创建用户名和密码 {{< glossary_tooltip text="Secret" term_id="secret" >}},
52+
然后创建运行一个容器的 Pod,
5053
该 Pod 使用[`projected`](/zh-cn/docs/concepts/storage/volumes/#projected) 卷将 Secret 挂载到相同的路径下。
5154

5255
下面是 Pod 的配置文件:
@@ -61,7 +64,7 @@ Here is the configuration file for the Pod:
6164
echo -n "admin" > ./username.txt
6265
echo -n "1f2d1e2e67df" > ./password.txt
6366

64-
# 将上述文件引用到 Secret
67+
# Secret 中引用上述文件
6568
kubectl create secret generic user --from-file=./username.txt
6669
kubectl create secret generic pass --from-file=./password.txt
6770
```
@@ -70,7 +73,7 @@ Here is the configuration file for the Pod:
7073
创建 Pod:
7174

7275
```shell
73-
kubectl create -f https://k8s.io/examples/pods/storage/projected.yaml
76+
kubectl apply -f https://k8s.io/examples/pods/storage/projected.yaml
7477
```
7578

7679
3. <!--
@@ -123,9 +126,8 @@ kubectl delete secret user pass
123126

124127
<!--
125128
* Learn more about [`projected`](/docs/concepts/storage/volumes/#projected) volumes.
126-
* Read the [all-in-one volume](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/all-in-one-volume.md) design document.
129+
* Read the [all-in-one volume](https://git.k8s.io/design-proposals-archive/node/all-in-one-volume.md) design document.
127130
-->
128131

129132
* 进一步了解[`projected`](/zh-cn/docs/concepts/storage/volumes/#projected) 卷。
130-
* 阅读[一体卷](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/all-in-one-volume.md)设计文档。
131-
133+
* 阅读[一体卷](https://git.k8s.io/design-proposals-archive/node/all-in-one-volume.md)设计文档。

0 commit comments

Comments
 (0)