Exposing mongodb through istio gateway not happening

Hi All, we are trying to access to MongoDB through istio gateway using domain and getting
Unable to connect: connection to host closed
Gateway:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: gw-istio-nonprod-mongokafka
namespace: istio-ingress
spec:
selector:
istio: ingressgateway
servers:

Virtualservice:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: mongodbdata-nonprod
namespace: istio-ingress
spec:
hosts:
- “npmongodbdata.tets.com
gateways:

  • gw-istio-nonprod-mongokafka
    tcp:
  • match:
    • port: 27017
      route:
    • destination:
      host: mongodata-mongodb-sharded.mongodbdata.svc.cluster.local
      port:
      number: 27017

Have you exposed port 27017 on ingress gateway at istio sytem namespace. Also why not use service entry? Check the documentation