You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The health check itself is working as expected. We can confirm that the endpoint responds with SERVING / NOT_SERVING as expected. Therefore, I suspect that the problem may be related to how the connection is terminated.
I would expect that no errors are being logged, if the health-check is working properly, not even on DEBUG level, especially with our standard kubernetes setup.
more info
Relevant initialisation code in main.rs:
let (mut health_reporter, health_server) = tonic_health::server::health_reporter();
health_reporter
.set_service_status("", ServingStatus::NotServing)
.await;
let addr = "0.0.0.0:9000".parse().unwrap();
let grpc_server = Server::builder()
.add_service(health_server)
.add_service(
CustomApiServer::new(business_logic_service)
)
.serve_with_shutdown(addr, cancellation_token.clone().cancelled_owned())
.unwrap();
let grpc_server_handle = tokio::spawn(grpc_server);
// set serving happens down the line
Kubernetes version: Server Version: v1.30.5
We were wondering if this issue describes our problem, because k8s has a Go-client. But we do specify the host using 0.0.0.0, so it seems that cannot be the cause.
The text was updated successfully, but these errors were encountered:
Bug Report
Version
Platform
Crates
Description
We're using tonic-health for native kubernetes gRPC health checks (as described here).
Here, the relevant snippet from the deployment descriptor:
On each invocation of the health endpoint in our application, we see an error being logged on
DEBUG
level:The health check itself is working as expected. We can confirm that the endpoint responds with
SERVING
/NOT_SERVING
as expected. Therefore, I suspect that the problem may be related to how the connection is terminated.I would expect that no errors are being logged, if the health-check is working properly, not even on
DEBUG
level, especially with our standard kubernetes setup.more info
Relevant initialisation code in main.rs:
Kubernetes version:
Server Version: v1.30.5
We were wondering if this issue describes our problem, because k8s has a Go-client. But we do specify the host using
0.0.0.0
, so it seems that cannot be the cause.The text was updated successfully, but these errors were encountered: