diff --git a/docs/config_examples/openshift/routes/sample-route-rewrite-app-root.yaml b/docs/config_examples/openshift/routes/sample-route-rewrite-app-root.yaml new file mode 100644 index 000000000..3a213b398 --- /dev/null +++ b/docs/config_examples/openshift/routes/sample-route-rewrite-app-root.yaml @@ -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 + diff --git a/docs/config_examples/openshift/routes/sample-route-rewrite-target-url.yaml b/docs/config_examples/openshift/routes/sample-route-rewrite-target-url.yaml new file mode 100644 index 000000000..7d450585b --- /dev/null +++ b/docs/config_examples/openshift/routes/sample-route-rewrite-target-url.yaml @@ -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