From daff9bdaf6f9298986b5cae9ffb2b02fa9b16cdc Mon Sep 17 00:00:00 2001 From: fqsghostcloud Date: Tue, 21 Aug 2018 03:38:43 +0800 Subject: [PATCH] Update configure-pod-configmap.md (#9846) * Update configure-pod-configmap.md i think environmental variables belong to container level, not pod level * Lower case "container" --- .../configure-pod-container/configure-pod-configmap.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 da9f205286..bb11bc2baa 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 @@ -293,9 +293,9 @@ metadata: ``` -## Define Pod environment variables using ConfigMap data +## Define container environment variables using ConfigMap data -### Define a Pod environment variable with data from a single ConfigMap +### Define a container environment variable with data from a single ConfigMap 1. Define an environment variable as a key-value pair in a ConfigMap: @@ -333,7 +333,7 @@ metadata: 1. Save the changes to the Pod specification. Now, the Pod's output includes `SPECIAL_LEVEL_KEY=very`. -### Define Pod environment variables with data from multiple ConfigMaps +### Define container environment variables with data from multiple ConfigMaps 1. As with the previous example, create the ConfigMaps first. @@ -385,7 +385,7 @@ metadata: 1. Save the changes to the Pod specification. Now, the Pod's output includes `SPECIAL_LEVEL_KEY=very` and `LOG_LEVEL=info`. -## Configure all key-value pairs in a ConfigMap as Pod environment variables +## Configure all key-value pairs in a ConfigMap as container environment variables {{< note >}} **Note:** This functionality is available to users running Kubernetes v1.6 and later. @@ -404,7 +404,7 @@ metadata: SPECIAL_TYPE: charm ``` -1. Use `envFrom` to define all of the ConfigMap's data as Pod environment variables. The key from the ConfigMap becomes the environment variable name in the Pod. +1. Use `envFrom` to define all of the ConfigMap's data as container environment variables. The key from the ConfigMap becomes the environment variable name in the Pod. ```yaml apiVersion: v1