tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Container Management > Kubernetes > How to define Container environment variables using ConfigMap data

How to define Container environment variables using ConfigMap data

Author: Venkata Sudhakar

The below example shows how to define Container environment variables using ConfigMap data. First create ConfigMap with required key value pairs. Next define the Container environment variables using valueFrom 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