Re-enable and configure multiple virtual services in yc-ecp Istio configuration for main-gateway.

This commit is contained in:
emelinda 2026-08-05 02:16:35 +03:00
parent 9da34bb9cc
commit af6135f2b0

View File

@ -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