-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Nitin SRIVASTAV <[email protected]>
- Loading branch information
1 parent
c7b7ba0
commit fec157c
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
docs/config_examples/openshift/routes/sample-route-rewrite-app-root.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
annotations: | ||
# rewrite-app-root annotation will redirect any traffic for root path(http://st.com/) to path(https://st.com/bar) | ||
virtual-server.f5.com/rewrite-app-root: /bar | ||
labels: | ||
f5type: systest | ||
name: st-com | ||
namespace: default | ||
spec: | ||
host: st.com | ||
to: | ||
kind: Service | ||
name: svc | ||
weight: 100 | ||
wildcardPolicy: None | ||
|
19 changes: 19 additions & 0 deletions
19
docs/config_examples/openshift/routes/sample-route-rewrite-target-url.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
annotations: | ||
virtual-server.f5.com/health: '[{"path": "/","send": "GET / HTTP/1.0\r\n\r\n","recv": "","interval": 2,"timeout": 5}]' | ||
# rewrite-target-url annotation will redirect any traffic for "http://st.com/bar" to "st.com/foo" | ||
virtual-server.f5.com/rewrite-target-url: /foo | ||
labels: | ||
f5type: systest | ||
name: st-com | ||
namespace: default | ||
spec: | ||
host: st.com | ||
path: /bar | ||
to: | ||
kind: Service | ||
name: svc | ||
weight: 100 | ||
wildcardPolicy: None |