From 97ca82c568406ad88b2d322f14ece4ff4bb90ff6 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Fri, 10 Apr 2026 15:47:18 +0300 Subject: [PATCH] fix postgresql bootstrap --- .../infrastructure/patches/postgresql.yaml | 20 ++++++++++++++++++- .../postgresql/base/helmrelease.yaml | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml b/clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml index 48e72d8..62f12ee 100644 --- a/clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml +++ b/clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml @@ -20,10 +20,18 @@ spec: values: global: defaultStorageClass: local-path + postgresql: + auth: + username: "" + database: "" + auth: + username: "" + database: "" image: registry: cr.yandex/crp3ccidau046kdj8g9q repository: contour/postgresql - tag: 17 + tag: 17.0.2 + pullPolicy: Always metrics: enabled: false prometheusRule: @@ -34,6 +42,14 @@ spec: persistence: storageClass: local-path size: 20Gi + extraEnvVars: + - name: CONTOUR_PGUSER + value: "sarex" + - name: CONTOUR_PGPASSWORD + valueFrom: + secretKeyRef: + name: postgresql + key: user-password nodeSelector: dedicated: db tolerations: @@ -43,6 +59,8 @@ spec: effect: NoSchedule contour: enabled: true + adminUser: "sarex" + adminPasswordSecretKey: "user-password" sharedPreloadLibraries: "timescaledb,pg_stat_statements" databases: - name: sarex_db diff --git a/infrastructure/postgresql/base/helmrelease.yaml b/infrastructure/postgresql/base/helmrelease.yaml index 15c6619..6bd1520 100644 --- a/infrastructure/postgresql/base/helmrelease.yaml +++ b/infrastructure/postgresql/base/helmrelease.yaml @@ -8,7 +8,7 @@ spec: chart: spec: chart: postgresql-contour - version: "17.0.1" + version: "17.0.2" sourceRef: kind: HelmRepository name: yc-oci-charts