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
Services with health checks sometimes get stuck in degraded/initializing #2516
Comments
This happens to me with hosts that are going to be or are in "Reconnecting" state. |
@cusspvz we've put a bunch of fixes related to healthchecks + hosts in reconnecting state combination - all will be available in next rancher release. The problem @cjellick is facing, is different. Today we don't support health checks for instances having Host networking. So if the health check is specified for such instance, the instance will be in initializing state forever. |
|
not enough information here so closing issue. |
I'm using rancher 0.56.1 and seeing this behavior: Services I've set health checks for start fine, work fine (they're even behind a LB and working good). I see the health checks in the container logs passing (and returning a 200 code), but both services are marked as "Initializing". |
Also, the load-balancer itself (using rancher/load-balancer-service, with a health-check) is marked as "Initializing" as well, even though it is working fine. |
I removed switched a TCP check instead of an HTTP check (removed the |
Upgrading services to remove the health checks completely sets them to the "Active" state. The load-balancer however is still marked as "Initializing", even after a restart. |
OK, that turned out to be a firewall issue. When I added a rule to my security group to allow all traffic on all protocols from all sources, the health checks passed. However, allowing them from within the security group of the nodes or from the rancher server did not need to suffice. Which firewall rules are actually necessary for health checks to work properly? |
Health check ports for load balancers are port 42. |
In building my kubernetes stack, when I added health checks, about half the time, the services/containers never got passed the degraded/initializing phase.
The text was updated successfully, but these errors were encountered: