diff --git a/content/zh/docs/tasks/configure-pod-container/configure-projected-volume-storage.md b/content/zh/docs/tasks/configure-pod-container/configure-projected-volume-storage.md index 089ed655e8..cb71f70d5c 100644 --- a/content/zh/docs/tasks/configure-pod-container/configure-projected-volume-storage.md +++ b/content/zh/docs/tasks/configure-pod-container/configure-projected-volume-storage.md @@ -54,7 +54,7 @@ Here is the configuration file for the Pod: {{< codenew file="pods/storage/projected.yaml" >}} 1. - 创建 Secrets: + 创建 Secret: ```shell # 创建包含用户名和密码的文件: @@ -73,7 +73,7 @@ Here is the configuration file for the Pod: kubectl create -f https://k8s.io/examples/pods/storage/projected.yaml ``` - @@ -91,20 +91,34 @@ Here is the configuration file for the Pod: test-projected-volume 1/1 Running 0 14s ``` -3. +4. 在另外一个终端中,打开容器的 shell: ```shell kubectl exec -it test-projected-volume -- /bin/sh ``` -4. +5. 在 shell 中,确认 `projected-volume` 目录包含你的投射源: ```shell ls /projected-volume/ ``` + +## 清理 + +删除 Pod 和 Secret: + +```shell +kubectl delete pod test-projected-volume +kubectl delete secret user pass +``` + ## {{% heading "whatsnext" %}}