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

Remove readiness endpoint from starting config #937

Merged
merged 1 commit into from
Jul 3, 2022

Conversation

jcmoraisjr
Copy link
Owner

External HAProxy starts with a bare minimum configuration, just to serve as a placeholder to the first real configuration. We need this first configuration so we have a process to be reloaded remotely. This needs to be a bare minimum / invalid because in that stage we don't have information enough to create a real configuration.

This starting configuration however might lead to a false positive ready state from the cluster perspective because of the /healthz endpoint implemented in the starting configuration. This endpoint is being removed from that stage, so the cluster can property mark the pod as not ready and remove from load balancers until the real configuration is in place.

External HAProxy starts with a bare minimum configuration, just to serve
as a placeholder to the first real configuration. We need this first
configuration so we have a process to be reloaded remotely. This needs
to be a bare minimum / invalid because in that stage we don't have
information enough to create a real configuration.

This starting configuration however might lead to a false positive
ready state from the cluster perspective because of the /healthz
endpoint implemented in the starting configuration. This endpoint is
being removed from that stage, so the cluster can property mark the
pod as not ready and remove from load balancers until the real
configuration is in place.
@jcmoraisjr jcmoraisjr merged commit a07b76f into master Jul 3, 2022
@jcmoraisjr jcmoraisjr deleted the jm-external-readiness branch July 3, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant