Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-22984

[fiware-stackoverflow] Overriding Scorpio Quarkus application properties from Kubernetes pod ENV - Java Kafka Quarkus Version

    Details

      Description

      Created question in FIWARE Q/A platform on 14-04-2024 at 00:04
      Please, ANSWER this question AT https://stackoverflow.com/questions/78322236/overriding-scorpio-quarkus-application-properties-from-kubernetes-pod-env-java

      Question:
      Overriding Scorpio Quarkus application properties from Kubernetes pod ENV - Java Kafka Quarkus Version

      Description:
      Scoprio Broker claims that all of the variables in application.properties of aaio can be overridden from container ENV by replacing . to _ and making all uppercase. So, in application properties here, https://github.com/ScorpioBroker/ScorpioBroker/blob/development-quarkus/AllInOneRunner/src/main/resources/application.properties, I see a variable jdbcurl. Can i override that in Docker ENV using JDBCURL=<postgres_url> ? I tried, but doesn't seem to work like descirbed in docs. What am I missing? Am i wrong or the docs are?
      Should I build the Scorpio from source with updated application.properties? Are Scorpio Docs legit?
      I also tried this https://github.com/ScorpioBroker/ScorpioBroker/blob/development-quarkus/docs/en/source/buildScorpio.rst, passing --quarkus.datasource.url, --writer.datasource.url and --reader.datasource.url in args of pod spec. No luck.
      My pod spec:
      apiVersion: v1
      kind: Pod
      metadata:
      name: connectivity-test
      labels:
      role: connectivity-test
      spec:
      containers:

      • name: scorpio
        image: scorpiobroker/all-in-one-runner:java-kafka-latest
        args: ["--writer.datasource.url=jdbc:postgresql://<ip>:5432/ngb?ApplicationName=aio-runner&sslmode=require --reader.datasource.url=jdbc:postgresql://<ip>:5432/ngb?ApplicationName=aio-runner&sslmode=require --quarkus.datasource.url=jdbc:postgresql://<ip>:5432/ngb"]

      None of the above ENV works. The Pod container just takes the default vlaue for postgres that is jdbc:postgresql://postgres:5432/ngb
      You can see that I dont need just to give custom postgres URL, I also want to add sslmode=require. so DBHOST and DBPASS ENV doesnt help me.

        Activity

        Hide
        newbacklogmanager Backlog Manager added a comment -

        2025-02-04 17:51|CREATED monitor | # answers= 0, accepted answer= False

        Show
        newbacklogmanager Backlog Manager added a comment - 2025-02-04 17:51|CREATED monitor | # answers= 0, accepted answer= False

          People

          • Assignee:
            Unassigned
            Reporter:
            newbacklogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: