-
Notifications
You must be signed in to change notification settings - Fork 366
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
Sentinel Readiness is ready when really not #532
Comments
@cbuckley01 I suppose this is the right thing to do. I guess all the probe on both redis & sentinel should somehow move to the CRDs, like the cc: @ese |
Thanks @cbuckley01, a PR is very welcome. IMHO better left it simple, so until there is no clear statement to have a custom readiness probe its enough to have the opinionated operator one. |
@ese @cbuckley01 I would differ in opinion... Its always better to have custom probes in the CRD. Which include the following.
to override the defaults if they are specified otherwise have the defaults. Two gains we get by doing this.
|
This issue is stale because it has been open for 45 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Expected behaviour
The K8s sentinel service should not include endpoints (sentinels) that have local master, 127.0.0.1
Actual behavior
The readiness check will gladly put a sentinel's endpoint into the service even though it is not registered with the cluster yet
Steps to reproduce the behaviour
Get lucky and point an app at the k8s sentinel service when a new sentinel pod just comes up and watch the app fail trying to connect to master @ 127.0.0.1
The bug/fix should be pretty simple, the readiness check needs to ensure that the sentinel is indeed connected to a cluster of more than itself at the very least, something like this:
I can submit a PR, but wondering how deep you want to go, make the
readiness check
for sentinel a configurable option, changing the CRD etc... (ugh) or just use an iteration of the above as the baked in check?The text was updated successfully, but these errors were encountered: