I have deployed my app on K8. I am able to call DGraph through HTTP client from that K8 pod but when I am trying to connect the same dGraph server using Go gRPC client on gRPC port (9080) I am getting the following error. “Error while dialing dial tcp xx.xx.xxx.xxx:0: connect: connection timed out.”
This setup is working fine if I deploy my app on my local machine. Am I missing any settings?
Have you checked if the pods are able to reach out to the Dgraph instances? The gRPC ports at least.
If it works locally, it should work on K8s. If your pods are able to reach Dgraph.
Check your network configuration(firewall, port forwarding and so on).
@sandeepkangude Adding on to this thread, is the client that is deployed in a Kubernetes reaching the VMs (dgraph managed by systemd) directly, or through a load balancer or reverse-proxy like Nginx that sends traffic to one of the three Alphas? If something like Nginx is used, is this L4 TCP or L7 HTTP/S?