Skip to content

Commit 9142c96

Browse files
ShivangamSonidmjb
andauthored
Update: ingress.md Example Snippet (#1386)
Co-authored-by: Don Browne <[email protected]>
1 parent 5d8d664 commit 9142c96

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

docs/kind/ingress.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,29 @@ We won't be applying it as its beyond the scope of this document, but the below
9393
apiVersion: networking.k8s.io/v1
9494
kind: Ingress
9595
metadata:
96-
name: mcp-fetch-ingress
96+
name: mcp-ingress
9797
namespace: toolhive-system
9898
annotations:
99-
nginx.ingress.kubernetes.io/rewrite-target: /
99+
nginx.ingress.kubernetes.io/rewrite-target: /$2
100100
spec:
101101
ingressClassName: nginx
102102
rules:
103-
- http:
104-
paths:
105-
- path: /
106-
pathType: Prefix
107-
backend:
108-
service:
109-
name: mcp-fetch-proxy
110-
port:
111-
number: 8080
103+
- http:
104+
paths:
105+
- path: /fetch(/|$)(.*)
106+
pathType: ImplementationSpecific
107+
backend:
108+
service:
109+
name: mcp-fetch-proxy
110+
port:
111+
number: 8080
112+
- path: /yardstick(/|$)(.*)
113+
pathType: ImplementationSpecific
114+
backend:
115+
service:
116+
name: mcp-yardstick-proxy
117+
port:
118+
number: 8080
112119
```
113120
114121
## Ingress with a Local Hostname

0 commit comments

Comments
 (0)