origin icon indicating copy to clipboard operation
origin copied to clipboard

creating custom haproxy IP address based routes in the openshift haproxy router

Open deevya2000 opened this issue 7 years ago • 4 comments

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 :

  1. From my browser, I hit 'https://a.b.com/d1'

  2. Openshift HAProxy Router 1 sees a.b.com --> maps to 1.2.3.4:443 (Openshift haproxy Router

  3. 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.

deevya2000 avatar Jun 21 '19 15:06 deevya2000

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

openshift-bot avatar Sep 19 '19 19:09 openshift-bot

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

openshift-bot avatar Oct 19 '19 20:10 openshift-bot

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 avatar Nov 19 '19 00:11 openshift-bot

@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.

openshift-ci-robot avatar Nov 19 '19 00:11 openshift-ci-robot