-
Notifications
You must be signed in to change notification settings - Fork 598
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
502 Bad gateway: Hazelcast Management Center via GCE Ingress #331
Comments
Not a big issue though, but can be an obstacle for newcomers. Perhaps, the Enterprise version of Hazelcast has it fixed. I don't know if anyone who will be using GCE Ingress in production, though. I am personally in favor of Nginx Ingress. Just observations :) |
Thanks to @puzpuzpuz who pointed me in the right direction, I have enabled the /health endpoint. See the yaml below:
However, it doesn't go through:
I guess the reason is that the health endpoint is exposed on a different port - 8081, whereas GCE Ingress is checking the readiness endpoint through the exposed service (which has target port 8080, not 8081). |
For those of you who will be exposing Hazelcast Management Center (MC) via Google's Ingress GCE controller - be aware that GCE Ingress is expecting a working (should be
200 OK
) readiness probe from the Service backing the MC Deployment.I tried with the defaults and got
502 Bad gateway
when accessing the exposed MC service. You can read about similar experience here.Note also, that the default endpoint
/hazelcast-mancenter
returns302 Found
, which is ok for the readiness probe, but apparently not for GCE Ingress. The quick hack would be to use either/hazelcast-mancenter/index.html
or/hazelcast-mancenter/
. But in the long term I would propose to implement a dedicated health probe, e.g./health
or/healthz
, etc.So
302 Found
is ok for checking the readiness of the Service, but if you check the status of the ingress, you will probably see theUNHEALTHY
status:Here is a working yaml:
P.S. Nginx Ingress doesn't have such issue. But a dedicated health endpoint is a nice to have non the less.
The text was updated successfully, but these errors were encountered: