diff --git a/helm_deploy/apply-for-legal-aid/templates/_envs.tpl b/helm_deploy/apply-for-legal-aid/templates/_envs.tpl index d86dbdaefe7..ea39333aa3f 100644 --- a/helm_deploy/apply-for-legal-aid/templates/_envs.tpl +++ b/helm_deploy/apply-for-legal-aid/templates/_envs.tpl @@ -224,7 +224,11 @@ env: - name: REDIS_PROTOCOL value: "redis" - name: REDIS_HOST + {{ if contains "redis" .Release.Name }} value: {{ printf "%s-%s.%s.%s" .Release.Name "master" .Release.Namespace "svc.cluster.local" }} + {{ else }} + value: {{ printf "%s-%s.%s.%s" .Release.Name "redis-master" .Release.Namespace "svc.cluster.local" }} + {{ end }} - name: REDIS_PASSWORD valueFrom: secretKeyRef: