grpc-ecosystem / grpc-health-probe

A command-line tool to perform health-checks for gRPC applications in Kubernetes and elsewhere
Apache License 2.0
1.44k stars 188 forks source link

The examples in the documentation don't seem to work. #122

Closed jordy1024 closed 2 years ago

jordy1024 commented 2 years ago

server

go run server/server.go -tls 

probe and ouput

./grpc-health-probe -addr 127.0.0.1:50051 \
-tls \
-tls-ca-cert /tmp/ca.pem \
-tls-server-name=example.com \
-rpc-header=foo:bar \
-rpc-header=foo2:bar2

timeout: failed to connect service "127.0.0.1:50051" within 1s
ahmetb commented 2 years ago

You didn't provide enough context but it appears you aren’t listening on that host:port.