diff --git a/deploy/helm/templates/configMap.yaml b/deploy/helm/templates/configMap.yaml index 4bc943047b..4a53bbe25b 100644 --- a/deploy/helm/templates/configMap.yaml +++ b/deploy/helm/templates/configMap.yaml @@ -1,4 +1,5 @@ {{- $nameSpace := include "appsmith.namespace" . -}} +{{- $name := include "appsmith.fullname" . -}} {{- $mongoUser := .Values.mongodb.auth.rootUser -}} {{- $mongoPassword := .Values.mongodb.auth.rootPassword -}} {{- $mongoServicename := .Values.mongodb.service.nameOverride -}} @@ -18,7 +19,7 @@ data: {{- end }} {{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }} {{- if $.Values.redis.enabled }} - {{ $key }}: redis://appsmith-redis-master.{{ $nameSpace }}.svc.cluster.local:6379 + {{ $key }}: redis://{{ $name }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379 {{- end }} {{- end }} {{- if $value }} diff --git a/deploy/helm/templates/statefulset.yaml b/deploy/helm/templates/statefulset.yaml index add9ee021f..b8a55ad6e1 100644 --- a/deploy/helm/templates/statefulset.yaml +++ b/deploy/helm/templates/statefulset.yaml @@ -47,7 +47,7 @@ spec: {{- if .Values.redis.enabled }} - name: redis-init-container image: alpine - command: ['sh', '-c', "apk add redis; until redis-cli -h appsmith-redis-master.{{.Release.Namespace}}.svc.cluster.local ping; do echo waiting for redis; sleep 2; done"] + command: ['sh', '-c', "apk add redis; until redis-cli -h {{ include "appsmith.fullname" . }}-redis-master.{{.Release.Namespace}}.svc.cluster.local ping; do echo waiting for redis; sleep 2; done"] {{- end }} {{- if .Values.mongodb.enabled }} - name: mongo-init-container