Merge pull request #3731 from Shopify/rewrite-target-doc-fix
Update a doc example that uses rewrite-target
This commit is contained in:
commit
6c58f3da96
1 changed files with 2 additions and 2 deletions
|
@ -71,13 +71,13 @@ kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: test-ingress-2
|
name: test-ingress-2
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: test.com
|
- host: test.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /foo/bar/.+
|
- path: /foo/bar/(.+)
|
||||||
backend:
|
backend:
|
||||||
serviceName: service3
|
serviceName: service3
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
|
Loading…
Reference in a new issue