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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.