How to read values of Openshift environment variables in properties and xml files

Solution Verified - Updated -

Issue

  • How can we get values of environment variables in Openshift in properties file and xml files.
  • How to substitute environment variables values for parameters in properties/xml files.
  • How to read values of openshift environment variables in xml files.

Environment

  • Openshift Enterprise
  • Openshift Online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content