Refactor yc-ecp configuration: update HelmRelease affinity settings for frontend and re-enable commented Istio routes for main-gateway.

This commit is contained in:
emelinda 2026-08-05 02:06:17 +03:00
parent 218d233eb7
commit db0b8988f1
2 changed files with 79 additions and 73 deletions

View File

@ -89,18 +89,24 @@ spec:
name: name:
_default: dockerhub _default: dockerhub
# чарт прогоняет weight, key, operator и topologyKey через pluckEnv,
# который читает только map вида {_default: …}; скаляры дают пустые значения
affinity: affinity:
podAntiAffinity: podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100 - weight:
_default: 100
podAffinityTerm: podAffinityTerm:
labelSelector: labelSelector:
matchExpressions: matchExpressions:
- key: app - key:
operator: In _default: app
operator:
_default: In
values: values:
- frontend - frontend
topologyKey: kubernetes.io/hostname topologyKey:
_default: kubernetes.io/hostname
# ConfigMap'ы nginx-configmap и robots-txt-config создаются вне этого # ConfigMap'ы nginx-configmap и robots-txt-config создаются вне этого
# релиза — чарт только монтирует их # релиза — чарт только монтирует их

View File

@ -156,75 +156,75 @@ spec:
service: dashboard-kong-proxy.kubernetes-dashboard.svc.cluster.local service: dashboard-kong-proxy.kubernetes-dashboard.svc.cluster.local
port: 80 port: 80
# # --- aero.invest.sarex.io / main-gateway --- # --- aero.invest.sarex.io / main-gateway ---
# backend-service-virt-service: backend-service-virt-service:
# namespace: gateway namespace: gateway
# hosts: hosts:
# - aero.invest.sarex.io - aero.invest.sarex.io
# gateways: gateways:
# - gateway/main-gateway - gateway/main-gateway
# cors: cors:
# allowHeaders: allowHeaders:
# - Authorization - Authorization
# - Content-Type - Content-Type
# allowMethods: allowMethods:
# - GET - GET
# - POST - POST
# - PUT - PUT
# - PATCH - PATCH
# - HEAD - HEAD
# - DELETE - DELETE
# routes: routes:
# - path: - path:
# prefix: /admin/ prefix: /admin/
# service: backend-service.django.svc.cluster.local service: backend-service.django.svc.cluster.local
# port: 8000 port: 8000
# - path: - path:
# prefix: /api prefix: /api
# service: backend-service.django.svc.cluster.local service: backend-service.django.svc.cluster.local
# port: 8000 port: 8000
#
# s3-proxy-virt-service: s3-proxy-virt-service:
# namespace: gateway namespace: gateway
# hosts: hosts:
# - aero.invest.sarex.io - aero.invest.sarex.io
# gateways: gateways:
# - gateway/main-gateway - gateway/main-gateway
# cors: cors:
# allowHeaders: allowHeaders:
# - Authorization - Authorization
# - Content-Type - Content-Type
# allowMethods: allowMethods:
# - GET - GET
# - POST - POST
# - PUT - PUT
# - PATCH - PATCH
# - HEAD - HEAD
# - DELETE - DELETE
# routes: routes:
# - path: - path:
# prefix: /s3/ prefix: /s3/
# rewrite: / rewrite: /
# service: s3-bim-service.django.svc.cluster.local service: s3-bim-service.django.svc.cluster.local
# port: 80 port: 80
# - path: - path:
# prefix: /media/ prefix: /media/
# rewrite: / rewrite: /
# service: s3-service.django.svc.cluster.local service: s3-service.django.svc.cluster.local
# port: 80 port: 80
#
# frontend-vs: frontend-vs:
# namespace: gateway namespace: gateway
# noCors: true noCors: true
# hosts: hosts:
# - aero.invest.sarex.io - aero.invest.sarex.io
# gateways: gateways:
# - gateway/main-gateway - gateway/main-gateway
# routes: routes:
# # без path — маршрут без match, catch-all, как в кластере; # без path — маршрут без match, catch-all, как в кластере;
# # он должен оставаться последним по порядку сопоставления # он должен оставаться последним по порядку сопоставления
# - service: frontend-service.django.svc.cluster.local - service: frontend-service.django.svc.cluster.local
# port: 80 port: 80
# #
# bim-api-gazpromcps-api-virt-service: # bim-api-gazpromcps-api-virt-service:
# namespace: gateway # namespace: gateway