Skip to content

Commit

Permalink
Fix for #174: Incrase healthcheck timeout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bokysan committed Jan 9, 2024
1 parent 83b9af5 commit a1b30f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/mail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ readinessProbe:
initialDelaySeconds: 10
periodSeconds: 60
failureThreshold: 6
timeoutSeconds: 8
exec:
command:
- sh
Expand Down
3 changes: 3 additions & 0 deletions scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ check_dkim() {
printf '\x18Clocalhost\x004\x00\x00127.0.0.1\x00' | nc -w 2 127.0.0.1 8891
}

echo "Postfix check..."
check_postfix
echo "DKIM check..."
check_dkim
echo "All OK!"

0 comments on commit a1b30f3

Please sign in to comment.