From 7fcc3568255575c26b719832cc5024a70ea423b5 Mon Sep 17 00:00:00 2001 From: Bart Smykla Date: Mon, 15 Apr 2024 09:18:09 +0200 Subject: [PATCH] chore(gateway): replace MeshGatewayRoute with MeshHTTPRoute (#46) Signed-off-by: Bart Smykla --- .gitignore | 1 + gateway.yaml | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 3c3629e..eb79dd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.idea diff --git a/gateway.yaml b/gateway.yaml index 77c7795..ce50625 100644 --- a/gateway.yaml +++ b/gateway.yaml @@ -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