Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-19030

OpenShift Service not defaulting port to 8080

XMLWordPrintable

    • False
    • None
    • False
    • % %
    • Todo
    • Hide

      Use the following project as a base:

      https://github.com/redhat-integration-resources/camel-sizing-patterns/tree/master/camelq/level1simple

      1) Edit the following file:

      https://github.com/redhat-integration-resources/camel-sizing-patterns/blob/master/camelq/level1simple/src/main/resources/application.properties

      remove the following properties:

      quarkus.openshift.ports.http.name=http
      quarkus.openshift.ports.http.host-port=8080
      quarkus.openshift.ports.http.container-port=8080

      save the file.

      2) deploy the project in OpenShift as per its Readme.me

      3) inspect the service created in OpenShift using port 80 (instead of 8080)

       

      Show
      Use the following project as a base: https://github.com/redhat-integration-resources/camel-sizing-patterns/tree/master/camelq/level1simple 1) Edit the following file: https://github.com/redhat-integration-resources/camel-sizing-patterns/blob/master/camelq/level1simple/src/main/resources/application.properties remove the following properties: quarkus.openshift.ports.http.name=http quarkus.openshift.ports.http.host-port=8080 quarkus.openshift.ports.http.container-port=8080 save the file. 2) deploy the project in OpenShift as per its Readme.me 3) inspect the service created in OpenShift using port 80 (instead of 8080)  

      When deploying Camel Quarkus in OpenShift with REST operations, the service created in OpenShift defaults its port to 80 (instead of 8080).

      There seems to be a reference issue that was reported describing the problem:

      https://github.com/quarkusio/quarkus/issues/16089

      In previous versions of Camel Quarkus this was not a problem.

      The workaround to force the deployment to set the service with port 8080 is to define the following settings under the application.properties file:

      quarkus.openshift.ports.http.name=http
      quarkus.openshift.ports.http.host-port=8080
      quarkus.openshift.ports.http.container-port=8080

      With the above properties, the service runs with port 8080

      The expectation is to see the service created and using the port 8080 without the workaround above, in line with previous versions of Camel Quarkus

              Unassigned Unassigned
              bmesegue@redhat.com Bruno Meseguer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: