I have a problem with grpc communication on kubernetes. I have a java client calling a simple helloworld grpc service (in java too). Everything works fine in Docker but not in kubernetes :'(.
You can get the whole code here: https://github.com/hagakure/testgrpc
How to reproduce?
- just run
./start.bat - then I create my deployments and I expose them on kubectl.
- You can access the service with this address:
http://localhost:8080/hello?firstName=cedricbut it doesn't work :'( - I added a second method (http://localhost:8080/check?address=host.docker.internal&port=8081) to try different address/port combination to connect to server but yet it never works.
- I also tried a simple http connection between two exposed services and that works fine so it's not just the ip/port that doesn't match :(
If you have any clue on how to make grpc works in kubernetes, thanks for your help.