Skip to content

Commit 2743423

Browse files
chore: simplifies http routing (#121)
We only need one route for maas-api, routes for models are handled by LLMInferenceService controller, so creating separate one can cause confusion. ; Conflicts: ; deployment/base/networking/kustomization.yaml Signed-off-by: Bartosz Majsak <bartosz.majsak@gmail.com>
1 parent 2ab48e5 commit 2743423

File tree

8 files changed

+9
-110
lines changed

8 files changed

+9
-110
lines changed

deployment/base/maas-api/auth-override.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
# HTTPRoute for MaaS API Service
2-
# Provides external access via domain-based routing
3-
---
41
apiVersion: gateway.networking.k8s.io/v1
52
kind: HTTPRoute
63
metadata:
7-
name: maas-api-domain-route
4+
name: maas-api-route
85
namespace: maas-api
9-
labels:
10-
kuadrant.io/gateway: openshift-ai-inference
116
spec:
127
parentRefs:
138
- name: openshift-ai-inference
149
namespace: openshift-ingress
15-
hostnames:
16-
- "maas-api.${CLUSTER_DOMAIN}"
1710
rules:
1811
- matches:
1912
- path:
2013
type: PathPrefix
21-
value: /
14+
value: /maas-api
15+
filters:
16+
- type: URLRewrite
17+
urlRewrite:
18+
path:
19+
type: ReplacePrefixMatch
20+
replacePrefixMatch: /
2221
backendRefs:
2322
- name: maas-api
24-
namespace: maas-api
2523
port: 8080
2624
weight: 100

deployment/base/maas-api/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resources:
88
- deployment.yaml
99
- service.yaml
1010
- httproute.yaml
11-
- auth-override.yaml
11+
- maas-auth-policy.yaml
1212
- tier-mapping-configmap.yaml
1313
- clusterrolebinding.yaml
1414
- clusterrole.yaml
File renamed without changes.

deployment/base/networking/gateway-class/kustomization.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

deployment/base/networking/gateway-class/model-routing.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

deployment/base/networking/httproute.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

deployment/base/networking/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ metadata:
77
resources:
88
- kuadrant.yaml
99
- gateway-api.yaml
10-
- httproute.yaml

0 commit comments

Comments
 (0)