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 -}}
|
{{- $mongoUser := .Values.mongodb.auth.rootUser -}}
|
||||||
{{- $mongoPassword := .Values.mongodb.auth.rootPassword -}}
|
{{- $mongoPassword := .Values.mongodb.auth.rootPassword -}}
|
||||||
{{- $mongoServicename := .Values.mongodb.service.nameOverride -}}
|
{{- $mongoServicename := .Values.mongodb.service.nameOverride -}}
|
||||||
|
{{- $releaseName := .Release.Name -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -19,7 +20,7 @@ data:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }}
|
{{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }}
|
||||||
{{- if $.Values.redis.enabled }}
|
{{- 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 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $value }}
|
{{- if $value }}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
image: "docker.io/library/redis:6.2-alpine"
|
image: "docker.io/library/redis:6.2-alpine"
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- if .Values.mongodb.enabled }}
|
{{- if .Values.mongodb.enabled }}
|
||||||
- name: mongo-init-container
|
- name: mongo-init-container
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user