iac/clusters/wb/infrastructure/patches/trino.yaml
2026-07-22 13:10:48 +03:00

113 lines
3.7 KiB
YAML

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: trino
namespace: trino
spec:
interval: 5m
timeout: 20m
values:
nameOverride: trino
coordinatorNameOverride: trino-coordinator
workerNameOverride: trino-worker
gateway:
enabled: false
virtualService:
enabled: false
server:
workers: 1
config:
authenticationType: ""
autoscaling:
enabled: false
auth:
passwordAuthSecret: ""
env:
- name: PROD_PG_RO_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: postgres_ro_password
catalogs:
sarex_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/sarex_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
flows_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/flows_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
issues_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/issues_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
workspaces_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/workspaces_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
resources_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/resources_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
pm_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/pm_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
eav_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/eav_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
inspections_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/inspections_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
documentations_db: |
connector.name=postgresql
connection-url=jdbc:postgresql://sarex-vpsql-01.xc.wb.ru:5432/documentations_db?sslmode=disable
connection-user=readonly
connection-password=${ENV:PROD_PG_RO_PASSWORD}
postgresql.array-mapping=AS_JSON
clickhouse_db: |
connector.name=tpch
tpch.splits-per-node=4
hive: |
connector.name=tpch
tpch.splits-per-node=4
coordinator:
resources:
requests:
cpu: 500m
memory: 2Gi
limits:
memory: 4Gi
worker:
resources:
requests:
cpu: 500m
memory: 2Gi
limits:
memory: 4Gi
nodeSelector:
dedicated: processing-light
tolerations:
- key: dedicated
operator: Equal
value: processing-light
effect: NoSchedule