Skip to content

Commit 8771167

Browse files
authored
fix(probes): rely on supervisorctl native exit codes for status
The double-grep behavior led to the command unintentionally hanging in some cases, prompting k8s to continually restart the pod without valid reason.
1 parent 4ec28e2 commit 8771167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ spec:
172172
command:
173173
- /bin/bash
174174
- -c
175-
- supervisorctl status | grep -E "amavis|clamav|cron|dovecot|mailserver|opendkim|opendmarc|postfix|rsyslog" | grep RUNNING
175+
- supervisorctl status amavis clamav cron dovecot mailserver opendkim opendmarc postfix rsyslog
176176
initialDelaySeconds: 10
177177
timeoutSeconds: 5
178178
failureThreshold: 3
@@ -181,7 +181,7 @@ spec:
181181
command:
182182
- /bin/bash
183183
- -c
184-
- supervisorctl status | grep -E "mailserver|postfix" | grep RUNNING
184+
- supervisorctl status mailserver postfix
185185
initialDelaySeconds: 10
186186
timeoutSeconds: 5
187187
failureThreshold: 3

0 commit comments

Comments
 (0)