Hello All,
We have a customized version of keycloak 18, quarkus powered, I try to setup a kubernetes deployment configuration file using a container for the start --auto-build step, and it doesn’t work as expected. It seems that when executing the container (in a pod) if fails to setup the database connexion.
Here is the service.yaml file:
imagePullPolicy: IfNotPresent
command: [ “java” ]
args:
- “-Xms64m”
- “-Xmx512m”
- ‘-XX:MetaspaceSize=96M’
- ‘-XX:MaxMetaspaceSize=256m’
- ‘-Djava.net.preferIPv4Stack=true’
- ‘–add-exports=java.base/sun.nio.ch=ALL-UNNAMED’
- ‘–add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED’
- ‘–add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED’
- ‘-Djava.util.logging.manager=org.jboss.logmanager.LogManager’
- ‘-Dquarkus-log-max-startup-records=10000’
- ‘-Dkc.home.dir=/opt/keycloak’
- ‘-Djboss.server.config.dir=/opt/keycloak/conf’
- “-Dquarkus.log.level=$(LOG_LEVEL)”
- ‘-Dkeycloak.migration.action=import’
- ‘-Dkeycloak.migration.provider=singleFile’
- ‘-Dkeycloak.migration.file=$(KEYCLOAK_CONFIGURATION_LOCATION)’
- ‘-Dkeycloak.migration.strategy=OVERWRITE_EXISTING’
- ‘-Djgroups.bind_addr=$(HOST_IP)’
- “-cp”
- ‘/opt/keycloak/lib/quarkus-run.jar’
- “io.quarkus.bootstrap.runner.QuarkusEntryPoint”
- “start”
- “–auto-build”
- “–cache=ispn”
- “–features=preview”
- “–http-relative-path=/auth”
- “–db=postgres”
- “–db-password=$(DB_PASSWORD)”
- “–db-username=$(DB_USER)”
- “–db-url=$(DB_CONNECTION_URL)”
- “–hostname=localhost”
- ‘–http-enabled=true’
And here is the service output:
2022-05-11 14:27:38,144 WARN [io.quarkus.runtime.configuration.ConfigRecorder] (main) Build time property cannot be changed at runtime:
- quarkus.datasource.jdbc.driver is set to ‘org.h2.jdbcx.JdbcDataSource’ but it is build time fixed to ‘org.postgresql.xa.PGXADataSource’. Did you change the property quarkus.datasource
- quarkus.http.root-path is set to ‘/’ but it is build time fixed to ‘/auth’. Did you change the property quarkus.http.root-path after building the application?
What do I do wrong ?