diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index e609194478..4f007bb446 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redis -version: 8.0.15 +version: 8.0.16 appVersion: 5.0.5 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/templates/metrics-deployment.yaml b/stable/redis/templates/metrics-deployment.yaml index 0e45535b42..acd961717d 100644 --- a/stable/redis/templates/metrics-deployment.yaml +++ b/stable/redis/templates/metrics-deployment.yaml @@ -53,10 +53,12 @@ spec: {{- end }} env: - name: REDIS_ADDR - {{- if .Values.cluster.enabled }} + {{- if and .Values.cluster.enabled .Values.sentinel.enabled }} + value: {{ printf "%s:%d" ( include "redis.fullname" . ) ( int .Values.sentinel.service.redisPort ) | quote }} + {{- else if .Values.cluster.enabled }} value: {{ printf "%s-master:%d,%s-slave:%d" ( include "redis.fullname" . ) ( int .Values.redisPort ) ( include "redis.fullname" . ) ( int .Values.redisPort ) | quote }} {{- else }} - value: {{ printf "%s-master:%d" (include "redis.fullname" . ) (int .Values.redisPort) | quote }} + value: {{ printf "%s-master:%d" ( include "redis.fullname" . ) (int .Values.redisPort) | quote }} {{- end }} - name: REDIS_ALIAS value: {{ template "redis.fullname" . }}