From 47bd9a5a646367cd4865eb55d29712a8c3b1cbb0 Mon Sep 17 00:00:00 2001 From: "Gabriel R. Antunes" Date: Mon, 24 Jun 2024 11:00:55 -0400 Subject: [PATCH] feat(services/api): no rewrite `/api` --- .../overlays/development/ingress.yaml | 10 ++++++---- .../06-03-api/overlays/local/ingress.yaml | 7 ++++--- .../06-03-api/overlays/production/ingress.yaml | 18 +++++++++++++++--- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/06-services/06-03-api/overlays/development/ingress.yaml b/06-services/06-03-api/overlays/development/ingress.yaml index 6a93f35..46d1b62 100644 --- a/06-services/06-03-api/overlays/development/ingress.yaml +++ b/06-services/06-03-api/overlays/development/ingress.yaml @@ -3,14 +3,15 @@ kind: Ingress metadata: name: ladesa-ro-api-ingress annotations: - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/rewrite-target: /$2 + # nginx.ingress.kubernetes.io/use-regex: "true" + # nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: rules: - host: "luna.sisgha.com" http: paths: - - path: /api(/|$)(.*) + # - path: /api(/|$)(.*) + - path: /api/ pathType: ImplementationSpecific backend: service: @@ -20,7 +21,8 @@ spec: - host: "dev.ladesa.com.br" http: paths: - - path: /api(/|$)(.*) + # - path: /api(/|$)(.*) + - path: /api/ pathType: ImplementationSpecific backend: service: diff --git a/06-services/06-03-api/overlays/local/ingress.yaml b/06-services/06-03-api/overlays/local/ingress.yaml index 9c847eb..dc62153 100644 --- a/06-services/06-03-api/overlays/local/ingress.yaml +++ b/06-services/06-03-api/overlays/local/ingress.yaml @@ -3,14 +3,15 @@ kind: Ingress metadata: name: ladesa-ro-api-ingress annotations: - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/rewrite-target: /$2 + # nginx.ingress.kubernetes.io/use-regex: "true" + # nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: rules: - host: "ing.kluster.local" http: paths: - - path: /api(/|$)(.*) + # - path: /api(/|$)(.*) + - path: /api/ pathType: ImplementationSpecific backend: service: diff --git a/06-services/06-03-api/overlays/production/ingress.yaml b/06-services/06-03-api/overlays/production/ingress.yaml index acdc50e..0bbb6a8 100644 --- a/06-services/06-03-api/overlays/production/ingress.yaml +++ b/06-services/06-03-api/overlays/production/ingress.yaml @@ -3,14 +3,26 @@ kind: Ingress metadata: name: ladesa-ro-api-ingress annotations: - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/rewrite-target: /$2 + # nginx.ingress.kubernetes.io/use-regex: "true" + # nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: rules: + - host: "sisgha.com" + http: + paths: + # - path: /api(/|$)(.*) + - path: /api/ + pathType: ImplementationSpecific + backend: + service: + name: ladesa-ro-api + port: + name: web - host: "ladesa.com.br" http: paths: - - path: /api(/|$)(.*) + # - path: /api(/|$)(.*) + - path: /api/ pathType: ImplementationSpecific backend: service: