3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 13:03:21 +00:00

Additional configuration for redis instances

This commit is contained in:
Tim Campbell 2024-05-14 21:44:59 +02:00
parent 2675296550
commit 5e7650a373

View File

@ -73,10 +73,10 @@ data:
{{- end }} {{- end }}
REDIS_PORT: {{ .Values.redis.port | default "6379" | quote }} REDIS_PORT: {{ .Values.redis.port | default "6379" | quote }}
{{- if .Values.redis.sidekiq.enabled }} {{- if .Values.redis.sidekiq.enabled }}
{{- if .Values.redis.sidekiq.host }} {{- if .Values.redis.sidekiq.hostname }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.sidekiq.host }} SIDEKIQ_REDIS_HOST: {{ .Values.redis.sidekiq.hostname }}
{{- else }} {{- else }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.host }} SIDEKIQ_REDIS_HOST: {{ .Values.redis.hostname }}
{{- end }} {{- end }}
{{- if .Values.redis.sidekiq.port }} {{- if .Values.redis.sidekiq.port }}
SIDEKIQ_REDIS_PORT: {{ .Values.redis.sidekiq.port }} SIDEKIQ_REDIS_PORT: {{ .Values.redis.sidekiq.port }}
@ -85,10 +85,10 @@ data:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if .Values.redis.cache.enabled }} {{- if .Values.redis.cache.enabled }}
{{- if .Values.redis.cache.host }} {{- if .Values.redis.cache.hostname }}
CACHE_REDIS_HOST: {{ .Values.redis.cache.host }} CACHE_REDIS_HOST: {{ .Values.redis.cache.hostname }}
{{- else }} {{- else }}
CACHE_REDIS_HOST: {{ .Values.redis.host}} CACHE_REDIS_HOST: {{ .Values.redis.hostname}}
{{- end }} {{- end }}
{{- if .Values.redis.cache.port }} {{- if .Values.redis.cache.port }}
CACHE_REDIS_PORT: {{ .Values.redis.cache.port }} CACHE_REDIS_PORT: {{ .Values.redis.cache.port }}