Skip to content

Commit

Permalink
chore(gateway): replace MeshGatewayRoute with MeshHTTPRoute (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Smykla <[email protected]>
  • Loading branch information
bartsmykla authored Apr 15, 2024
1 parent a13d7cf commit 7fcc356
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.idea
27 changes: 14 additions & 13 deletions gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@ spec:
kuma.io/service: demo-app-gateway_kuma-demo_svc
---
apiVersion: kuma.io/v1alpha1
kind: MeshGatewayRoute
mesh: default
kind: MeshHTTPRoute
metadata:
name: demo-app
namespace: kuma-system
spec:
conf:
http:
targetRef:
kind: MeshGateway
name: demo-app
to:
- targetRef:
kind: Mesh
rules:
- matches:
- default:
backendRefs:
- kind: MeshService
name: demo-app_kuma-demo_svc_5000
matches:
- path:
match: PREFIX
type: PathPrefix
value: /
backends:
- destination:
kuma.io/service: demo-app_kuma-demo_svc_5000
weight: 1
selectors:
- match:
kuma.io/service: demo-app_gateway
---
apiVersion: kuma.io/v1alpha1
kind: MeshGatewayInstance
Expand Down

0 comments on commit 7fcc356

Please sign in to comment.