Skip to content

Commit

Permalink
keys-tasker init redis check added
Browse files Browse the repository at this point in the history
  • Loading branch information
Efber committed Dec 26, 2024
1 parent fa52d3d commit 7d7e379
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion charts/keys/templates/tasker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with include "keys.psql.initTLS" . }}
initContainers:
- name: wait-redis
image: redis
command: ['/bin/bash', '-c', "state=0; while (( $state == 0 )); do if redis-cli -u redis://default:{{ .Values.redis.password }}@{{ include "keys.redis.name" . }}:{{ .Values.redis.port }} -r 1 -i 1 info; then export state=1; else sleep 3; fi; done"]
resources:
limits:
cpu: 200m
memory: 384Mi
requests:
cpu: 50m
memory: 256Mi
{{- with include "keys.psql.initTLS" . }}
{{- . | nindent 8 }}
{{- end }}
containers:
Expand Down

0 comments on commit 7d7e379

Please sign in to comment.