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:
- port:
number: 27017
name: mongo
protocol: TCP
hosts:
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
- port: 27017