From af6135f2b0d58b66239d0a22689b78c7df501de2 Mon Sep 17 00:00:00 2001 From: emelinda Date: Wed, 5 Aug 2026 02:16:35 +0300 Subject: [PATCH] Re-enable and configure multiple virtual services in `yc-ecp` Istio configuration for `main-gateway`. --- .../istio-config/yc-ecp/istio-config.yaml | 264 +++++++++--------- 1 file changed, 132 insertions(+), 132 deletions(-) diff --git a/infrastructure/istio-config/yc-ecp/istio-config.yaml b/infrastructure/istio-config/yc-ecp/istio-config.yaml index e8b493a..1a03f22 100644 --- a/infrastructure/istio-config/yc-ecp/istio-config.yaml +++ b/infrastructure/istio-config/yc-ecp/istio-config.yaml @@ -225,135 +225,135 @@ spec: # он должен оставаться последним по порядку сопоставления - service: frontend-service.django.svc.cluster.local port: 80 -# -# bim-api-gazpromcps-api-virt-service: -# namespace: gateway -# hosts: -# - aero.invest.sarex.io -# gateways: -# - gateway/main-gateway -# cors: -# allowHeaders: -# - Authorization -# - Content-Type -# allowMethods: -# - GET -# - POST -# - PUT -# - PATCH -# - HEAD -# - DELETE -# routes: -# - path: -# prefix: /bim-gazpromcps/api/ -# rewrite: /api/ -# service: bim-api-gazpromcps-service.bim.svc.cluster.local -# port: 80 -# - path: -# prefix: /bim-gazpromcps/files/ -# rewrite: /files/ -# service: bim-api-gazpromcps-service.bim.svc.cluster.local -# port: 80 -# -# bim-backend-v2-api-virt-service: -# namespace: gateway -# hosts: -# - aero.invest.sarex.io -# gateways: -# - gateway/main-gateway -# cors: -# allowHeaders: -# - Authorization -# - Content-Type -# allowMethods: -# - GET -# - POST -# - PUT -# - PATCH -# - HEAD -# - DELETE -# routes: -# - path: -# prefix: /bim2-gazpromcps/api/ -# rewrite: /api/ -# service: bim-backend-v2-service.bim.svc.cluster.local -# port: 80 -# -# eav-virt-service: -# namespace: gateway -# hosts: -# - aero.invest.sarex.io -# gateways: -# - gateway/main-gateway -# cors: -# allowHeaders: -# - Authorization -# - Content-Type -# allowMethods: -# - POST -# - GET -# - PATCH -# - DELETE -# - HEAD -# - PUT -# - OPTIONS -# routes: -# - path: -# prefix: /eav/api/ -# rewrite: /api/ -# service: eav-service.eav.svc.cluster.local -# port: 8000 -# noCors: true -# - path: -# prefix: /eav/admin/ -# rewrite: /eav/admin/ -# service: eav-service.eav.svc.cluster.local -# port: 8000 -# -# api-virt-service: -# namespace: gateway -# hosts: -# - aero.invest.sarex.io -# gateways: -# - gateway/main-gateway -# cors: -# allowHeaders: -# - Authorization -# - Content-Type -# allowMethods: -# - GET -# - POST -# - PUT -# - PATCH -# - HEAD -# - DELETE -# routes: -# - path: -# prefix: /workflows/api/ -# rewrite: /api/ -# service: workflows-backend-service.processing.svc.cluster.local -# port: 80 -# -# projects-frontend-static-virt-service: -# namespace: gateway -# hosts: -# - aero.invest.sarex.io -# gateways: -# - gateway/main-gateway -# cors: -# allowHeaders: -# - Authorization -# - Content-Type -# allowMethods: -# - GET -# - POST -# - PUT -# - PATCH -# - HEAD -# - DELETE -# routes: -# - path: -# prefix: /projects/static/ -# rewrite: / -# service: projects-frontend-static-service.projects.svc.cluster.local -# port: 80 + + bim-api-gazpromcps-api-virt-service: + namespace: gateway + hosts: + - aero.invest.sarex.io + gateways: + - gateway/main-gateway + cors: + allowHeaders: + - Authorization + - Content-Type + allowMethods: + - GET + - POST + - PUT + - PATCH + - HEAD + - DELETE + routes: + - path: + prefix: /bim-gazpromcps/api/ + rewrite: /api/ + service: bim-api-gazpromcps-service.bim.svc.cluster.local + port: 80 + - path: + prefix: /bim-gazpromcps/files/ + rewrite: /files/ + service: bim-api-gazpromcps-service.bim.svc.cluster.local + port: 80 + + bim-backend-v2-api-virt-service: + namespace: gateway + hosts: + - aero.invest.sarex.io + gateways: + - gateway/main-gateway + cors: + allowHeaders: + - Authorization + - Content-Type + allowMethods: + - GET + - POST + - PUT + - PATCH + - HEAD + - DELETE + routes: + - path: + prefix: /bim2-gazpromcps/api/ + rewrite: /api/ + service: bim-backend-v2-service.bim.svc.cluster.local + port: 80 + + eav-virt-service: + namespace: gateway + hosts: + - aero.invest.sarex.io + gateways: + - gateway/main-gateway + cors: + allowHeaders: + - Authorization + - Content-Type + allowMethods: + - POST + - GET + - PATCH + - DELETE + - HEAD + - PUT + - OPTIONS + routes: + - path: + prefix: /eav/api/ + rewrite: /api/ + service: eav-service.eav.svc.cluster.local + port: 8000 + noCors: true + - path: + prefix: /eav/admin/ + rewrite: /eav/admin/ + service: eav-service.eav.svc.cluster.local + port: 8000 + + api-virt-service: + namespace: gateway + hosts: + - aero.invest.sarex.io + gateways: + - gateway/main-gateway + cors: + allowHeaders: + - Authorization + - Content-Type + allowMethods: + - GET + - POST + - PUT + - PATCH + - HEAD + - DELETE + routes: + - path: + prefix: /workflows/api/ + rewrite: /api/ + service: workflows-backend-service.processing.svc.cluster.local + port: 80 + + projects-frontend-static-virt-service: + namespace: gateway + hosts: + - aero.invest.sarex.io + gateways: + - gateway/main-gateway + cors: + allowHeaders: + - Authorization + - Content-Type + allowMethods: + - GET + - POST + - PUT + - PATCH + - HEAD + - DELETE + routes: + - path: + prefix: /projects/static/ + rewrite: / + service: projects-frontend-static-service.projects.svc.cluster.local + port: 80