fix: redis-url when deploying appsmith via helm (#25689)
Fixes: [25688](https://github.com/appsmithorg/appsmith/issues/25688)
This commit is contained in:
parent
b3b9b57d4a
commit
6faaf791d2
|
|
@ -3,6 +3,7 @@
|
|||
{{- $mongoUser := .Values.mongodb.auth.rootUser -}}
|
||||
{{- $mongoPassword := .Values.mongodb.auth.rootPassword -}}
|
||||
{{- $mongoServicename := .Values.mongodb.service.nameOverride -}}
|
||||
{{- $releaseName := .Release.Name -}}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
|
@ -19,7 +20,7 @@ data:
|
|||
{{- end }}
|
||||
{{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }}
|
||||
{{- if $.Values.redis.enabled }}
|
||||
{{ $key }}: redis://{{ $name }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379
|
||||
{{ $key }}: redis://{{ $releaseName }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if $value }}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ spec:
|
|||
{{- else }}
|
||||
image: "docker.io/library/redis:6.2-alpine"
|
||||
{{- end }}
|
||||
command: ['sh', '-c', "until redis-cli -h {{ include "appsmith.fullname" . }}-redis-master.{{.Release.Namespace}}.svc.cluster.local ping ; do echo waiting for redis; sleep 2; done"]
|
||||
command: ['sh', '-c', "until redis-cli -h {{.Release.Name}}-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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user