Skip to content

Commit a1b30f3

Browse files
committed
Fix for #174: Incrase healthcheck timeout
Default timeout for healthcheck by kubernetes is too low. As we wait up for 2 seconds for the Postfix and DKIM to respond, this exceeds the threshold and the healthcheck fails with: ``` Readiness probe failed: command "sh -c /scripts/healthcheck.sh" timed out ``` By simply increasing `timeoutSeconds` this issue is resolved.
1 parent 83b9af5 commit a1b30f3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

helm/mail/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ readinessProbe:
205205
initialDelaySeconds: 10
206206
periodSeconds: 60
207207
failureThreshold: 6
208+
timeoutSeconds: 8
208209
exec:
209210
command:
210211
- sh

scripts/healthcheck.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ check_dkim() {
1818
printf '\x18Clocalhost\x004\x00\x00127.0.0.1\x00' | nc -w 2 127.0.0.1 8891
1919
}
2020

21+
echo "Postfix check..."
2122
check_postfix
23+
echo "DKIM check..."
2224
check_dkim
25+
echo "All OK!"

0 commit comments

Comments
 (0)