Merge pull request #48336 from my-git9/pp-7042
[zh-cn] sync configure-pod-configmap.mdpull/48325/merge
commit
43fb8339e9
|
@ -907,12 +907,14 @@ Here is the manifest you will use:
|
||||||
现在,Pod 的输出包含环境变量 `SPECIAL_LEVEL_KEY=very` 和 `LOG_LEVEL=INFO`。
|
现在,Pod 的输出包含环境变量 `SPECIAL_LEVEL_KEY=very` 和 `LOG_LEVEL=INFO`。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Once you're happy to move on, delete that Pod:
|
Once you're happy to move on, delete that Pod and ConfigMap:
|
||||||
-->
|
-->
|
||||||
一旦你乐意继续前进,删除该 Pod:
|
一旦你乐意继续前进,删除此 Pod 和 ConfigMap:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl delete pod dapi-test-pod --now
|
kubectl delete pod dapi-test-pod --now
|
||||||
|
kubectl delete configmap special-config
|
||||||
|
kubectl delete configmap env-config
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -1499,6 +1501,15 @@ kubectl delete configmaps/special-config configmaps/env-config
|
||||||
kubectl delete configmap -l 'game-config in (config-4,config-5)'
|
kubectl delete configmap -l 'game-config in (config-4,config-5)'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Remove the `kustomization.yaml` file that you used to generate the ConfigMap:
|
||||||
|
-->
|
||||||
|
删除用于生成 ConfigMap 的 `kustomization.yaml` 文件:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm kustomization.yaml
|
||||||
|
```
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
If you created a directory `configure-pod-container` and no longer need it, you should remove that too,
|
If you created a directory `configure-pod-container` and no longer need it, you should remove that too,
|
||||||
or move it into the trash can / deleted files location.
|
or move it into the trash can / deleted files location.
|
||||||
|
@ -1506,6 +1517,10 @@ or move it into the trash can / deleted files location.
|
||||||
如果你创建了一个目录 `configure-pod-container` 并且不再需要它,你也应该删除这个目录,
|
如果你创建了一个目录 `configure-pod-container` 并且不再需要它,你也应该删除这个目录,
|
||||||
或者将该目录移动到回收站/删除文件的位置。
|
或者将该目录移动到回收站/删除文件的位置。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -r configure-pod-container
|
||||||
|
```
|
||||||
|
|
||||||
## {{% heading "whatsnext" %}}
|
## {{% heading "whatsnext" %}}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in New Issue