Hi Team,
We have followed the below step to configure remote cluster.
In remote cluster, we have create istio ingress gateway/virtualservice with TCP to expose the service.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: es-gateway
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
- port:
number: 9500
name: hello1
protocol: TCP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: es-vs
spec:
hosts:
- "*"
gateways:
- es-gateway
tcp:
- match:
- port: 9500
route:
- destination:
port:
number: 9300
host: quickstart-es-transport.default.svc.cluster.local
After configure remote cluster, we are getting request in remote cluster (istio logs) like below which is failed to connect.
Note: x.x.x.x is remote cluster
[2021-04-22T13:02:59.554Z] "- - -" 0 UH "-" "-" 0 0 0 - "-" "-" "-" "-" "-" - - x.x.x.x:9500 y.y.y.y:46395 - -
[2021-04-22T13:02:59.554Z] "- - -" 0 UH "-" "-" 0 0 0 - "-" "-" "-" "-" "-" - - x.x.x.x:9500 y.y.y.y:29463 - -
[2021-04-22T13:02:59.554Z] "- - -" 0 UH "-" "-" 0 0 0 - "-" "-" "-" "-" "-" - - x.x.x.x:9500 y.y.y.y:9801 - -
[2021-04-22T13:02:59.554Z] "- - -" 0 UH "-" "-" 0 0 0 - "-" "-" "-" "-" "-" - - x.x.x.x:9500 y.y.y.y:53429 - -
[2021-04-22T13:02:59.554Z] "- - -" 0 UH "-" "-" 0 0 0 - "-" "-" "-" "-" "-" - - x.x.x.x:9500 y.y.y.y:35396 - -