generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP rewrite matches the example text (#1346)
Co-authored-by: Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com>
- Loading branch information
1 parent
1b83499
commit 303445c
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
examples/experimental/http-redirect-rewrite/httproute-rewritepath.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,21 @@ | ||
#$ Used in: | ||
#$ - site-src/api-types/httproute.md | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: http-filter-rewrite | ||
spec: | ||
hostnames: | ||
- rewrite.example | ||
rules: | ||
- filters: | ||
- type: URLRewrite | ||
urlRewrite: | ||
hostname: elsewhere.example | ||
path: | ||
type: ReplacePrefixMatch | ||
replacePrefixMatch: /fennel | ||
backendRefs: | ||
- name: example-svc | ||
weight: 1 | ||
port: 80 |
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