Skip to content

Commit

Permalink
adding route examples (#1895)
Browse files Browse the repository at this point in the history
Co-authored-by: Nitin SRIVASTAV <[email protected]>
  • Loading branch information
srivastavnitin24 and Nitin SRIVASTAV authored Jul 13, 2021
1 parent c7b7ba0 commit fec157c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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

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

0 comments on commit fec157c

Please sign in to comment.