fix(argo-cd): Enable Redis authentication in the default installation (#2705)
This commit is contained in:
parent
f9eb0b394c
commit
fcee9a6046
16 changed files with 352 additions and 14 deletions
|
|
@ -65,8 +65,14 @@ spec:
|
|||
- ""
|
||||
- --appendonly
|
||||
- "no"
|
||||
{{- with (concat .Values.global.env .Values.redis.env) }}
|
||||
- --requirepass $(REDIS_PASSWORD)
|
||||
env:
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: argocd-redis
|
||||
key: auth
|
||||
{{- with (concat .Values.global.env .Values.redis.env) }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.redis.envFrom }}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ data:
|
|||
redis_liveness.sh: |
|
||||
response=$(
|
||||
redis-cli \
|
||||
-a "${REDIS_PASSWORD}" --no-auth-warning \
|
||||
-h localhost \
|
||||
-p {{ .Values.redis.containerPorts.redis }} \
|
||||
ping
|
||||
|
|
@ -23,6 +24,7 @@ data:
|
|||
redis_readiness.sh: |
|
||||
response=$(
|
||||
redis-cli \
|
||||
-a "${REDIS_PASSWORD}" --no-auth-warning \
|
||||
-h localhost \
|
||||
-p {{ .Values.redis.containerPorts.redis }} \
|
||||
ping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue