sandeep
sandeep

Reputation: 71

Quarkus application properties as kubernetes/openshift config map for native Image deployment

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.

Upvotes: 0

Views: 1290

Answers (1)

Ladicek
Ladicek

Reputation: 6587

The application looks for an application.properties file in the config directory, sibling to the executable. So what you want is to:

  1. Create a ConfigMap with a key called application.properties. The value under that key is your application configuration file.
  2. 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.

Upvotes: 2

Related Questions