0

I am trying to add grpc health check to my dart backend, but it seems that the grpc implementation in dart does not bring the service for the kubernetes health check, as in other grpc implementations, as is the case of java https://grpc.github.io/grpc-java/javadoc/io/grpc/services/HealthStatusManager.html#getHealthService--.

how can i do this in dart ?

1 Answers1

0

gRPC provides a health.proto, described here.

Some of the language implementations provide implementations for it too. I know Go does grpc_health_v1 and it appears Java does too.

The proto is straightforward and, if the Dart SDK doesn't include an implementation, it should be straightforward for you to create one.

I recommend you retain the proto` package name mapped to Dart's package naming.

DazWilkin
  • 32,823
  • 5
  • 47
  • 88
  • Yes, I did, but the problem is that when I implemented it on my own grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe it doesn't work. it throws me an error saying like don't implement the health check, anyway I already implemented it myself and made a client that runs a rpc, and I run it to it with livenessProbe and readinessProbe. Thanks for your reply. – Daniel Armas Aug 24 '21 at 03:16