Skip to content

Commit 1ea1f7b

Browse files
committed
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 f50ceda commit 1ea1f7b

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
@@ -184,7 +184,7 @@ spec:
184184
command:
185185
- /bin/bash
186186
- -c
187-
- supervisorctl status | grep -E "amavis|clamav|cron|dovecot|mailserver|opendkim|opendmarc|postfix|rsyslog" | grep RUNNING
187+
- supervisorctl status amavis clamav cron dovecot mailserver opendkim opendmarc postfix rsyslog
188188
initialDelaySeconds: 10
189189
timeoutSeconds: 5
190190
failureThreshold: 3
@@ -193,7 +193,7 @@ spec:
193193
command:
194194
- /bin/bash
195195
- -c
196-
- supervisorctl status | grep -E "mailserver|postfix" | grep RUNNING
196+
- supervisorctl status mailserver postfix
197197
initialDelaySeconds: 10
198198
timeoutSeconds: 5
199199
failureThreshold: 3

0 commit comments

Comments
 (0)