|
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.
|
|