From 7eda46408df7d6ad2ab2e95b420fcf16878fe612 Mon Sep 17 00:00:00 2001 From: guzj11 <67083623+guzj11@users.noreply.github.com> Date: Sun, 13 Dec 2020 00:20:12 +0800 Subject: [PATCH] Update configure-projected-volume-storage.md sync with English version --- .../configure-projected-volume-storage.md | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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" %}}