Skip to content

Commit 9d80b75

Browse files
committed
[zh-cn] sync configure-pod-configmap.md
Signed-off-by: xin.li <[email protected]>
1 parent bd8960a commit 9d80b75

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,12 +907,14 @@ Here is the manifest you will use:
907907
现在,Pod 的输出包含环境变量 `SPECIAL_LEVEL_KEY=very``LOG_LEVEL=INFO`
908908

909909
<!--
910-
Once you're happy to move on, delete that Pod:
910+
Once you're happy to move on, delete that Pod and ConfigMap:
911911
-->
912-
一旦你乐意继续前进,删除该 Pod:
912+
一旦你乐意继续前进,删除此 Pod 和 ConfigMap
913913

914914
```shell
915915
kubectl delete pod dapi-test-pod --now
916+
kubectl delete configmap special-config
917+
kubectl delete configmap env-config
916918
```
917919

918920
<!--
@@ -1499,13 +1501,26 @@ kubectl delete configmaps/special-config configmaps/env-config
14991501
kubectl delete configmap -l 'game-config in (config-4,config-5)'
15001502
```
15011503

1504+
<!--
1505+
Remove the `kustomization.yaml` file that you used to generate the ConfigMap:
1506+
-->
1507+
删除用于生成 ConfigMap 的 `kustomization.yaml` 文件:
1508+
1509+
```bash
1510+
rm kustomization.yaml
1511+
```
1512+
15021513
<!--
15031514
If you created a directory `configure-pod-container` and no longer need it, you should remove that too,
15041515
or move it into the trash can / deleted files location.
15051516
-->
15061517
如果你创建了一个目录 `configure-pod-container` 并且不再需要它,你也应该删除这个目录,
15071518
或者将该目录移动到回收站/删除文件的位置。
15081519

1520+
```bash
1521+
rm -r configure-pod-container
1522+
```
1523+
15091524
## {{% heading "whatsnext" %}}
15101525

15111526
<!--

0 commit comments

Comments
 (0)