Skip to content

Commit da68d36

Browse files
authored
Merge pull request #44094 from 1000Delta/en_configmap
[en] config-pod-configmap add cleanup step and fix commands.
2 parents a2a9d5d + 2d13865 commit da68d36

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,11 @@ Here is the manifest you will use:
582582

583583
Now, the Pod's output includes environment variables `SPECIAL_LEVEL_KEY=very` and `LOG_LEVEL=INFO`.
584584

585-
Once you're happy to move on, delete that Pod:
585+
Once you're happy to move on, delete that Pod and ConfigMap:
586586
```shell
587587
kubectl delete pod dapi-test-pod --now
588+
kubectl delete configmap special-config
589+
kubectl delete configmap env-config
588590
```
589591

590592
## Configure all key-value pairs in a ConfigMap as container environment variables
@@ -911,9 +913,19 @@ kubectl delete configmaps/special-config configmaps/env-config
911913
kubectl delete configmap -l 'game-config in (config-4,config-5)'
912914
```
913915

916+
Remove the `kustomization.yaml` file that you used to generate the ConfigMap:
917+
918+
```bash
919+
rm kustomization.yaml
920+
```
921+
914922
If you created a directory `configure-pod-container` and no longer need it, you should remove that too,
915923
or move it into the trash can / deleted files location.
916924

925+
```bash
926+
rm -r configure-pod-container
927+
```
928+
917929
## {{% heading "whatsnext" %}}
918930

919931
* Follow a real world example of

0 commit comments

Comments
 (0)