Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2545

Cannot update HTTP port for Kogito Jobs Service, Data Index and Management Service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • Operator
    • None
    • 2020 Week 25-27 (from Jun 15)

    Description

      The operator is injecting the environment property "HTTP_PORT" and quarkus applications expect to be "QUARKUS_HTTP_PORT". Using the latter, it works as expected. I think the issue must be around this line.

      Example of Jobs Service CRD:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoJobsService
      metadata:
        name: jobs-service
      spec:
        httpPort: 9081
        image:
          domain: quay.io
          name: kogito-jobs-service
          namespace: kiegroup
          tag: '0.11'
        infinispan:
          credentials: {}
        kafka: {}
        replicas: 1
        resources: {}
      

      See logs:

      2020-06-25 10:28:43,156 jobs-service-6c7dfc684b-5hhrb INFO  [io.quarkus:-1] (main) jobs-service 0.11.0 (powered by Quarkus 1.4.1.Final) started in 1.636s. Listening on: http://0.0.0.0:8080
      

      Which is wrong. Using QUARKUS_HTTP_PORT:

      2020-06-25 10:29:42,539 jobs-service-6889647fbd-lbk2c INFO  [io.quarkus:-1] (main) jobs-service 0.11.0 (powered by Quarkus 1.4.1.Final) started in 1.327s. Listening on: http://0.0.0.0:9081
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-fspolti Filippe Spolti
              jcarvaja@redhat.com Jose Carvajal Hilario
              Jose Carvajal Hilario Jose Carvajal Hilario
              Jose Carvajal Hilario Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: