diff --git a/apps/rfi/base/backend-service.yaml b/apps/rfi/base/backend-service.yaml index f938e6d..a033244 100644 --- a/apps/rfi/base/backend-service.yaml +++ b/apps/rfi/base/backend-service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: - name: rfi-backend-api-svc + name: backend-svc namespace: rfi spec: type: ClusterIP diff --git a/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml b/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml index 598e64f..58094a9 100644 --- a/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml +++ b/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml @@ -286,6 +286,19 @@ spec: rewrite: /api/ service: backend-svc.flows.svc.cluster.local port: 80 + rfi-api: + name: rfi-api-virt-service + namespace: gateway + hosts: + - sarex.contour.infra.sarex.tech + gateways: + - gateway/platform-gateway + routes: + - path: + prefix: /rfi/api/ + rewrite: /api/ + service: backend-svc.rfi.svc.cluster.local + port: 80 transmittals-api: name: flows-api-virt-service namespace: gateway