tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Container Management > Kubernetes > How to mount the ConfigMap as a volume

How to mount the ConfigMap as a volume

Author: Venkata Sudhakar

The below example shows how to mount the ConfigMap as a volume in the container. First create ConfigMap with required key value pairs. Next define a volume based on ConfigMap and mount the same in the Container.

Now create a POD from the above definition, log into the container and inspect mount path /etc/config. We have one file created for each key value pair in the map.


 
  


  
bl  br