From f0fb38607953518bce0acf308b3c507ad4ddb265 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 19 May 2024 10:24:38 -0400 Subject: [PATCH] fix: update gatus config Signed-off-by: Devin Buhl --- .../apps/observability/gatus/app/externalsecret.yaml | 4 ++-- .../apps/observability/gatus/app/helmrelease.yaml | 2 +- .../observability/gatus/app/resources/config.yaml | 12 +++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/kubernetes/main/apps/observability/gatus/app/externalsecret.yaml b/kubernetes/main/apps/observability/gatus/app/externalsecret.yaml index 0edaa5ba749b0..cf53b8db302a7 100644 --- a/kubernetes/main/apps/observability/gatus/app/externalsecret.yaml +++ b/kubernetes/main/apps/observability/gatus/app/externalsecret.yaml @@ -13,8 +13,8 @@ spec: template: engineVersion: v2 data: - CUSTOM_PUSHOVER_TOKEN: "{{ .GATUS_PUSHOVER_TOKEN }}" - CUSTOM_PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}" + PUSHOVER_TOKEN: "{{ .GATUS_PUSHOVER_TOKEN }}" + PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}" INIT_POSTGRES_DBNAME: gatus INIT_POSTGRES_HOST: postgres16-rw.database.svc.cluster.local INIT_POSTGRES_USER: "{{ .GATUS_POSTGRES_USER }}" diff --git a/kubernetes/main/apps/observability/gatus/app/helmrelease.yaml b/kubernetes/main/apps/observability/gatus/app/helmrelease.yaml index 0a9567a0aff08..7040cd3c2cff6 100644 --- a/kubernetes/main/apps/observability/gatus/app/helmrelease.yaml +++ b/kubernetes/main/apps/observability/gatus/app/helmrelease.yaml @@ -62,7 +62,7 @@ spec: TZ: America/New_York GATUS_CONFIG_PATH: /config GATUS_DELAY_START_SECONDS: 5 - CUSTOM_WEB_PORT: &port 80 + WEB_PORT: &port 80 envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/main/apps/observability/gatus/app/resources/config.yaml b/kubernetes/main/apps/observability/gatus/app/resources/config.yaml index 20c0708d4ffd9..9c882f7c8917f 100644 --- a/kubernetes/main/apps/observability/gatus/app/resources/config.yaml +++ b/kubernetes/main/apps/observability/gatus/app/resources/config.yaml @@ -1,7 +1,7 @@ --- # Note: Gatus vars should be escaped with $${VAR_NAME} to avoid interpolation by Flux web: - port: $${CUSTOM_WEB_PORT} + port: $${WEB_PORT} storage: type: postgres path: postgres://$${INIT_POSTGRES_USER}:$${INIT_POSTGRES_PASS}@$${INIT_POSTGRES_HOST}:5432/$${INIT_POSTGRES_DBNAME}?sslmode=disable @@ -13,13 +13,15 @@ ui: header: Status alerting: pushover: - application-token: $${CUSTOM_PUSHOVER_TOKEN} - user-key: $${CUSTOM_PUSHOVER_USER_KEY} + title: Gatus (Kubernetes) + application-token: $${PUSHOVER_TOKEN} + user-key: $${PUSHOVER_USER_KEY} + priority: 1 default-alert: description: health-check failed send-on-resolved: true - failure-threshold: 5 - success-threshold: 2 + failure-threshold: 3 + success-threshold: 3 connectivity: checker: target: 1.1.1.1:53