diff --git a/content/zh-cn/docs/tasks/configure-pod-container/configure-projected-volume-storage.md b/content/zh-cn/docs/tasks/configure-pod-container/configure-projected-volume-storage.md index e9f49a2127e..d8cf2f7ff27 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/configure-projected-volume-storage.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/configure-projected-volume-storage.md @@ -15,7 +15,7 @@ weight: 70 @@ -39,14 +39,17 @@ and `serviceAccountToken` volumes can be projected. -## 为 Pod 配置 projected 卷 +## 为 Pod 配置投射卷 -本练习中,你将从本地文件来创建包含有用户名和密码的 Secret。然后创建运行一个容器的 Pod, +本练习中,你将使用本地文件来创建用户名和密码 {{< glossary_tooltip text="Secret" term_id="secret" >}}, +然后创建运行一个容器的 Pod, 该 Pod 使用[`projected`](/zh-cn/docs/concepts/storage/volumes/#projected) 卷将 Secret 挂载到相同的路径下。 下面是 Pod 的配置文件: @@ -61,7 +64,7 @@ Here is the configuration file for the Pod: echo -n "admin" > ./username.txt echo -n "1f2d1e2e67df" > ./password.txt - # 将上述文件引用到 Secret: + # 在 Secret 中引用上述文件 kubectl create secret generic user --from-file=./username.txt kubectl create secret generic pass --from-file=./password.txt ``` @@ -70,7 +73,7 @@ Here is the configuration file for the Pod: 创建 Pod: ```shell - kubectl create -f https://k8s.io/examples/pods/storage/projected.yaml + kubectl apply -f https://k8s.io/examples/pods/storage/projected.yaml ``` 3. * 进一步了解[`projected`](/zh-cn/docs/concepts/storage/volumes/#projected) 卷。 -* 阅读[一体卷](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/all-in-one-volume.md)设计文档。 - +* 阅读[一体卷](https://git.k8s.io/design-proposals-archive/node/all-in-one-volume.md)设计文档。