File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 {{- end }}
3737 {{- if .Values.redis.enabled }}
3838 {{- if .Values.redis.external }}
39+ REDIS_USER_NAME : {{ .Values.redis.externalConfig.username | quote }}
3940 REDIS_HOST : {{ .Values.redis.externalConfig.host | quote }}
4041 REDIS_PORT : {{ .Values.redis.externalConfig.port | quote }}
4142 {{- else }}
43+ REDIS_USER_NAME : {{ .Values.redis.internal.auth.username | quote }}
4244 REDIS_HOST : " {{ include " databunkerpro.fullname" . }}-redis"
4345 REDIS_PORT : " 6379"
4446 {{- end }}
Original file line number Diff line number Diff line change 5555 value : " /var/run/secrets/kubernetes.io/serviceaccount/mysql-password/password"
5656 {{- end }}
5757 {{- if .Values.redis.enabled }}
58- - name : REDIS_PASS_FILE
58+ - name : REDIS_USER_PASS_FILE
5959 value : " /var/run/secrets/kubernetes.io/serviceaccount/redis-password/password"
6060 {{- end }}
6161 ports :
Original file line number Diff line number Diff line change 2525 - name : redis
2626 containerPort : 6379
2727 protocol : TCP
28- command :
29- - redis-server
30- - --requirepass
31- - $(REDIS_PASSWORD)
28+ command : /bin/sh -c "redis-server --requirepass $$REDIS_USER_PASS"
3229 env :
33- - name : REDIS_PASSWORD
30+ - name : REDIS_USER_PASS
3431 valueFrom :
3532 secretKeyRef :
3633 name : {{ include "databunkerpro.fullname" . }}-redis
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ redis:
189189 port : 6379
190190 # make sure to set password
191191 password : " "
192+ username : " default"
192193
193194 # Internal Redis configuration (used when external: false)
194195 internal :
@@ -207,6 +208,7 @@ redis:
207208 cpu : " 200m"
208209 auth :
209210 password : " " # Will be auto-generated if not set
211+ username : " default"
210212
211213# DatabunkerPro configuration
212214config :
You can’t perform that action at this time.
0 commit comments