From 8c1e6ec02e7cae6c1938a9abf66dfa7a1304f3ce Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Sat, 8 Apr 2023 10:14:10 +0200 Subject: [PATCH] fix redis endpoint and chalice health endpoints (#1138) * chore(helm): Adding redis string from global config Signed-off-by: rjshrjndrn * fix(chalice): health check url for alerts and assist Signed-off-by: rjshrjndrn --------- Signed-off-by: rjshrjndrn --- api/chalicelib/core/health.py | 4 ++-- .../openreplay/charts/chalice/templates/deployment.yaml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/chalicelib/core/health.py b/api/chalicelib/core/health.py index f1fec41fa..155a73272 100644 --- a/api/chalicelib/core/health.py +++ b/api/chalicelib/core/health.py @@ -14,9 +14,9 @@ def app_connection_string(name, port, path): HEALTH_ENDPOINTS = { - "alerts": app_connection_string("alerts-openreplay", 8888, "metrics"), + "alerts": app_connection_string("alerts-openreplay", 8888, "health"), "assets": app_connection_string("assets-openreplay", 8888, "metrics"), - "assist": app_connection_string("assist-openreplay", 8888, "metrics"), + "assist": app_connection_string("assist-openreplay", 8888, "health"), "chalice": app_connection_string("chalice-openreplay", 8888, "metrics"), "db": app_connection_string("db-openreplay", 8888, "metrics"), "ender": app_connection_string("ender-openreplay", 8888, "metrics"), diff --git a/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml index 1efa5bccf..a5b6dce7b 100644 --- a/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml @@ -43,10 +43,9 @@ spec: {{- .Values.healthCheck | toYaml | nindent 10}} {{- end}} env: + {{- include "openreplay.env.redis_string" .Values.global.redis | nindent 12 }} - name: KAFKA_SERVERS value: "{{ .Values.global.kafka.kafkaHost }}" - - name: REDIS_STRING - value: "{{ .Values.global.redis.redisHost }}" - name: ch_username value: "{{ .Values.global.clickhouse.username }}" - name: ch_password