Skip to content

Commit

Permalink
fix: fixed dovecot probes
Browse files Browse the repository at this point in the history
Signed-off-by: fastlorenzo <git@bernardi.be>
  • Loading branch information
fastlorenzo committed Apr 28, 2023
1 parent f70466c commit b1b0405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mailu/templates/dovecot/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,23 @@ spec:
command:
- sh
- -c
- 'echo PING|nc -w2 localhost 5001|grep PONG'
- 'kill -0 `cat /run/dovecot/master.pid` && echo $?'
{{- end }}
{{- if .Values.dovecot.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.dovecot.livenessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- sh
- -c
- 'echo PING|nc -w2 localhost 5001|grep PONG'
- 'kill -0 `cat /run/dovecot/master.pid` && echo $?'
{{- end }}
{{- if .Values.dovecot.readinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.dovecot.readinessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- sh
- -c
- 'echo PING|nc -w2 localhost 5001|grep PONG'
- 'kill -0 `cat /run/dovecot/master.pid` && echo $?'
{{- end }}
volumes:
- name: data
Expand Down

0 comments on commit b1b0405

Please # to comment.