From 941b5a04d5a9111e96e91075286d1e70682713b8 Mon Sep 17 00:00:00 2001 From: Twilight Date: Wed, 2 Oct 2024 21:33:34 +0800 Subject: [PATCH] add route --- manifest.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/manifest.yaml b/manifest.yaml index 31125b2..07c572e 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -65,4 +65,20 @@ spec: - port: 80 targetPort: 80 protocol: TCP - name: http \ No newline at end of file + name: http +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: ocr-http + namespace: ecosystem +spec: + hostnames: + - ocr-api-testing.leaflow.cn + parentRefs: + - name: http-gw + namespace: networking + rules: + - backendRefs: + - name: easyocr + port: 80 \ No newline at end of file