tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Container Management > Kubernetes > How to use ConfigMap as Environment variables

How to use ConfigMap as Environment variables

Author: Venkata Sudhakar

The below example shows how to use ConfigMap as Environment variables. First create ConfigMap with required key value pairs. Next inject the desired ConfigMap using envFrom in container specification.

Now create a POD from the above definition, log into the container and inspect the newly added environment variables from ConfigMap.


 
  


  
bl  br