File tree Expand file tree Collapse file tree 2 files changed +39
-9
lines changed
Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,40 @@ Make sure to provide the names for the required config maps while building the i
234234-Dquarkus.openshift.config-map-volumes.app-config.config-map-name=<your-config-map-name> \
235235----
236236
237+ == Route configuration
238+
239+ We are not adding a route as part of the build since setting the path is currently unsupported.
240+ Create a route either with `oc` or through a UI using the OpenShift console.
241+ Make sure to set the next spec properties:
242+
243+ [source,yaml]
244+ ----
245+ spec:
246+ host: your-host.smth
247+ path: /path-to-use
248+ to:
249+ kind: Service
250+ name: your-replicate-jira-service-name
251+ port:
252+ targetPort: http
253+ tls:
254+ termination: edge
255+ insecureEdgeTerminationPolicy: Redirect
256+ wildcardPolicy: None
257+ ----
258+
259+ Note that certificates are not provided explicitly. To fully enable https and finish route configuration
260+ add the following annotations to the route:
261+
262+ [source,yaml]
263+ ----
264+ # will mark the resource as such that certificates will be generated for it:
265+ # see https://github.com/tnozicka/openshift-acme/#enabling-acme-certificates-for-your-object
266+ kubernetes.io/tls-acme: 'true'
267+ # Set the target to root so that the path `/path-to-use` is not passed to the service:
268+ haproxy.router.openshift.io/rewrite-target: /
269+ ----
270+
237271== Management endpoints
238272
239273There are management endpoints to sync particular issues/comments.
Original file line number Diff line number Diff line change @@ -47,15 +47,11 @@ quarkus.openshift.startup-probe.failure-threshold=48
4747# Declare the management port on the service
4848quarkus.openshift.ports."management".container-port =9000
4949quarkus.openshift.ports."management".host-port =90
50- # Add routes:
51- quarkus.openshift.route.host =infra.hibernate.org
52- quarkus.openshift.route.path =/replicate-jira
53- # Use a rewrite target so that the request go to the app root and the app handles the remaining path
54- # otherwise the app will end up receiving the path starting with `quarkus.openshift.route.path` (see ^)
55- # which it has no idea how to handle:
56- quarkus.openshift.route.annotations."haproxy.router.openshift.io/rewrite-target" =/
57- quarkus.openshift.route.expose =true
58- quarkus.openshift.route.target-port =http
50+ # Routes:
51+ # we disable routes in the build and add them manually, since setting path is currently unavailable.
52+ # See README for details on adding a route.
53+ quarkus.openshift.route.expose =false
54+
5955# # Route TLS configuration:
6056quarkus.openshift.route.tls.termination =edge
6157quarkus.openshift.route.tls.insecure-edge-termination-policy =Redirect
You can’t perform that action at this time.
0 commit comments