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