I have a gRPC server running on my local mac perfectly with a self-signed certificate and I'm able to connect from the NodeJS client code as well as from the Postman gRPC client ( Beta ). But, when deploying the same service to Kubernetes with these annotations in ingress -
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/backend-protocol: "GRPCS"
nginx.ingress.kubernetes.io/grpc-backend: "true"
The Postman is able to connect to the endpoint but, my NodeJS client code is not even able to hit the service. Eventually, the NodeJS client is throwing an error -
Error: 14 UNAVAILABLE: failed to connect to all addresses
Is there any special trick to apply?