[en] config-pod-configmap add cleanup step.
Remove special-config before next step to create newer with different data. Fix quotation mark of cleanup command. Fix quotation mark in create a configmap section. Add commands to remove used files. Remove unnecessary files and directories Fix nits Apply suggestions from code review Co-authored-by: Charles Uneze <charlesniklaus@gmail.com>
This commit is contained in:
parent
b87d6e139e
commit
2d13865044
|
|
@ -582,9 +582,11 @@ Here is the manifest you will use:
|
|||
|
||||
Now, the Pod's output includes environment variables `SPECIAL_LEVEL_KEY=very` and `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:
|
||||
```shell
|
||||
kubectl delete pod dapi-test-pod --now
|
||||
kubectl delete configmap special-config
|
||||
kubectl delete configmap env-config
|
||||
```
|
||||
|
||||
## Configure all key-value pairs in a ConfigMap as container environment variables
|
||||
|
|
@ -913,9 +915,19 @@ kubectl delete configmaps/special-config configmaps/env-config
|
|||
kubectl delete configmap -l 'game-config in (config-4,config-5)'
|
||||
```
|
||||
|
||||
Remove the `kustomization.yaml` file that you used to generate the ConfigMap:
|
||||
|
||||
```bash
|
||||
rm kustomization.yaml
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
```bash
|
||||
rm -r configure-pod-container
|
||||
```
|
||||
|
||||
## {{% heading "whatsnext" %}}
|
||||
|
||||
* Follow a real world example of
|
||||
|
|
|
|||
Loading…
Reference in New Issue