Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected algo for "healthcheck" when HTTPS is used #27

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

bigcat88
Copy link
Member

Should fix #23

There are situations when HaProxy listens only to IPv4 interfaces, and “nc -z localhost” resolves by default to IPv6

Therefore, when $BIND_ADDRESS=* - we need to check both addresses, if at least one of them opens port 2375 - we assume that HaProxy is healthy.

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@bigcat88 bigcat88 merged commit 124dd30 into main Jun 11, 2024
1 check passed
@bigcat88 bigcat88 deleted the healtcheck-adjust branch June 11, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhealthy container upon repeated attempts to create proxy
2 participants