From 2b1c8d7bbb4dec1861225fc2ec550a2e3e38ffac Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Mon, 15 Jun 2026 12:36:09 +0300 Subject: [PATCH] Fix brusnika-stage goalert database and observability readiness --- .../infrastructure/patches/goalert.yaml | 16 ++++------ .../infrastructure/patches/openobserve.yaml | 30 ++++++++++++++++++- .../patches/prometheus-stack.yaml | 4 +++ 3 files changed, 39 insertions(+), 11 deletions(-) diff --git a/clusters/brusnika-stage/infrastructure/patches/goalert.yaml b/clusters/brusnika-stage/infrastructure/patches/goalert.yaml index f5e84b2..975f61e 100644 --- a/clusters/brusnika-stage/infrastructure/patches/goalert.yaml +++ b/clusters/brusnika-stage/infrastructure/patches/goalert.yaml @@ -16,19 +16,15 @@ spec: imagePullSecrets: - regcred goalert: + existingSecret: + name: postgresql-secret + keys: + GOALERT_DB_URL: GOALERT_DB_URL + GOALERT_DATA_ENCRYPTION_KEY: GOALERT_DATA_ENCRYPTION_KEY environment: GOALERT_HTTP_PREFIX: "" postgresql: - enabled: true - auth: - database: goalert - username: goalert - sslmode: disable - primary: - persistence: - enabled: true - storageClass: csi-disk - size: 10Gi + enabled: false ingress: enabled: false className: nginx diff --git a/clusters/brusnika-stage/infrastructure/patches/openobserve.yaml b/clusters/brusnika-stage/infrastructure/patches/openobserve.yaml index 32d1ecd..6960df3 100644 --- a/clusters/brusnika-stage/infrastructure/patches/openobserve.yaml +++ b/clusters/brusnika-stage/infrastructure/patches/openobserve.yaml @@ -5,7 +5,35 @@ metadata: namespace: openobserve spec: interval: 5m - timeout: 10m + timeout: 30m + postRenderers: + - kustomize: + patches: + - target: + group: apps + version: v1 + kind: Deployment + name: openobserve-web + patch: |- + - op: replace + path: /spec/template/spec/containers/0/command + value: + - /bin/sh + - -ec + - op: replace + path: /spec/template/spec/containers/0/args + value: + - | + set -a + . /vault/secrets/openobserve-env + set +a + exec /openobserve + - op: replace + path: /spec/template/spec/containers/0/livenessProbe/initialDelaySeconds + value: 300 + - op: replace + path: /spec/template/spec/containers/0/readinessProbe/initialDelaySeconds + value: 60 values: universal-chart: services: diff --git a/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml b/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml index e8c2c04..34ec7e4 100644 --- a/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml +++ b/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml @@ -6,6 +6,10 @@ metadata: spec: interval: 5m timeout: 20m + install: + disableWait: true + upgrade: + disableWait: true values: fullnameOverride: prometheus-stack crds: