Issue
I want to externalize quarkus application properties as config map in kubernetes/openshift native image deployment. I know for Spring-boot we can use spring.config.location argument and refer using config map. How can we do the same for naive executable.
Solution
The application looks for an application.properties
file in the config
directory, sibling to the executable. So what you want is to:
- Create a ConfigMap with a key called
application.properties
. The value under that key is your application configuration file. - Mount that ConfigMap into a
config
directory next to your executable. That is, if the executable is in/app
, the ConfigMap should be mounted to/app/config
.
Answered By - Ladicek Answer Checked By - Senaida (WPSolving Volunteer)