From 2d13865044fbdff4fac88552d3ad69ffe82b32eb Mon Sep 17 00:00:00 2001 From: DeltaX Date: Mon, 27 Nov 2023 01:38:09 +0800 Subject: [PATCH] [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 --- .../configure-pod-configmap.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md index b7d942b30e..ab6bb0c63e 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md +++ b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md @@ -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