origin icon indicating copy to clipboard operation
origin copied to clipboard

Openshift route path rewrite

Open marouim opened this issue 8 years ago • 8 comments

Hello,

Here is my use case: Front-end application running in a POD. Back-end running in a différent POD.

Route are: myapp.example.com/ --> Front-end myapp.example.com/api --> Back-end

I would like to be able to rewrite the path and remove the "/api" portion, so the Backend would not see this path. Otherwise, I have to tell evey backend developer to add a "/api" or something else prefix to their application.

Just like proxyTable in webpack:

proxyTable: { '/api': { target: 'http://localhost:3000', changeOrigin: true, pathRewrite: { '^/api': '' }, }

Thanks for your help !

marouim avatar Apr 25 '18 04:04 marouim

@openshift/sig-networking

jwforres avatar Apr 30 '18 20:04 jwforres

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 Jul 30 '18 01:07 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 Aug 29 '18 07:08 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 Sep 28 '18 10:09 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 Sep 28 '18 10:09 openshift-ci-robot

/reopen

I'd say this is a good add; perhaps using some type of annotation.

egnoriega avatar Jul 16 '19 20:07 egnoriega

@egnoriega: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

I'd say this is a good add; perhaps using some type of annotation.

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 Jul 16 '19 20:07 openshift-ci-robot

I think #20474 is the refiled version.

jglick avatar Sep 05 '19 21:09 jglick