How to have a native built app (containerised) pick up config resources (files) at runtime? #33616
Unanswered
hartmut-co-uk
asked this question in
Q&A
Replies: 1 comment 3 replies
-
If you want to run in kubernetes you can use the kubernetes-config extension and configure your application to use a configmap/secret in production mode to read your config from. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was wondering if file resources, such as property/conf files that are usually placed under
src/main/resources
can be dynamically provided, e.g. for a particular stage (dev/test/prod/...).Example: Using datastax/cassandra-quarkus can I mount a custom
application.conf
for the datastax java driver into my native app container to be picked up at runtime?The key config is possible via
application.properties
or ENV vars, but e.g. advanced driver configs (ref https://quarkus.io/guides/cassandra#advanced-driver-configuration) such as execution profiles can't be configured that way.Is this correct? Does anyone have suggestions, best practices or other patterns on how to do this?
Beta Was this translation helpful? Give feedback.
All reactions