Container: Developing an Application - Environment Variables

Overview

OpenShift documentation on Environment Variables can be found here

Sample Environmental Variable Command

oc env dc/sample PROPERTIES=howdyProperties

This command will update the deployment config, called sample, to create an environmental variable called PROPERTIES with a value of howdy.  Because we are creating this in the deployment configuration, the variable will be available to the application at run-time. All pods that are created with this deploy config will use this variable.

Last Updated: 
Monday, September 10, 2018