creating custom haproxy IP address based routes in the openshift haproxy router
I have an OKD 3.11 cluster up and running with the openshiftrouter configured. However now, I need to use the openshift haproxy router to add my own routes without essentially mapping the route to a service. for example, I need to add a route that redirects 'a.b.com' to IP address '1.2.3.4:443'. Here 1.2.3.4 is the IP address of another cluster's haproxy router.
I know we can do this with a non-openshift haproxy, I would like to use the openshift's haproxy router to achieve this too. I would like to know if there is a supported way in openshift to add routes that map hostnames to IP addresses, by preserving the hostname throughout the routing.
In other words :
-
From my browser, I hit 'https://a.b.com/d1'
-
Openshift HAProxy Router 1 sees a.b.com --> maps to 1.2.3.4:443 (Openshift haproxy Router
-
Openshift haproxy Router 2 (residing in a different cluster at 1.2.3.4:443) sees a.b.com/d1 --> maps to a service called d1
The requirement is that we should be able to create these routes dynamically on a running cluster/router when needed.
Any suggestions on how to accomplish this ? What would be the TLS setting in this case for each route?
I do not see an option to create IP based (non-service) routing from openshift web console.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.