-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Open
spring-projects/spring-grpc
#381Labels
Description
Hello.
I'm using version 1.0.2 of the library with Spring Boot 4.0.3 in AOT and I realized that the Health service doesn't get exposed anymore.
My configuration is the following:
server.port: {{ .Values.httpServerPort }}
spring:
main.banner-mode: off
grpc:
server:
port: {{ .Values.grpcServerPort }}
health.actuator.health-indicator-paths:
- liveness
- readinessIn the logs of my application I can see:
{"@timestamp":"2026-03-02T12:07:25.589Z","log.level": "INFO","message":"Registered gRPC service: timekeepers.timeseriesapi.v1.TimeSeriesService","ecs.version": "1.2.0","service.name":"TimeSeries API","service.version":"0.0.5-SNAPSHOT","service.environment":"dev","event.dataset":"timeseries-api","process.thread.name":"main","log.logger":"org.springframework.grpc.server.NettyGrpcServerFactory","event.kind":"event"}
{"@timestamp":"2026-03-02T12:07:25.589Z","log.level": "INFO","message":"Registered gRPC service: grpc.reflection.v1.ServerReflection","ecs.version": "1.2.0","service.name":"TimeSeries API","service.version":"0.0.5-SNAPSHOT","service.environment":"dev","event.dataset":"timeseries-api","process.thread.name":"main","log.logger":"org.springframework.grpc.server.NettyGrpcServerFactory","event.kind":"event"}
{"@timestamp":"2026-03-02T12:07:25.609Z","log.level": "INFO","message":"gRPC Server started, listening on address: [/[0:0:0:0:0:0:0:0]:29090]","ecs.version": "1.2.0","service.name":"TimeSeries API","service.version":"0.0.5-SNAPSHOT","service.environment":"dev","event.dataset":"timeseries-api","process.thread.name":"main","log.logger":"org.springframework.grpc.server.lifecycle.GrpcServerLifecycle","event.kind":"event"}
{"@timestamp":"2026-03-02T12:07:25.659Z","log.level": "INFO","message":"Started TimeSeriesApiApplication in 5.802 seconds (process running for 6.311)","ecs.version": "1.2.0","service.name":"TimeSeries API","service.version":"0.0.5-SNAPSHOT","service.environment":"dev","event.dataset":"timeseries-api","process.thread.name":"main","log.logger":"com.foo.cit.fmd.timekeepers.timeseriesapi.TimeSeriesApiApplication","event.kind":"event"}but no entry for the service grpc.health.v1.Health.
Moreover, trying to calling it results in an error as well:
cdprete@myhost:~> grpcurl grpc-timeseries-api-timekeepers-hiku.ingress.ocp.foo.net:443 grpc.health.v1.Health/Check
Error invoking method "grpc.health.v1.Health/Check": target server does not expose service "grpc.health.v1.Health"Reactions are currently unavailable