JibinNajeeb
JibinNajeeb

Reputation: 834

Tcp client not connecting to server when using istio

I created two sample application(tcp-server and tcp-client) for checking TCP connection in istio environment. Used the below link to create server and client in g0

https://www.linode.com/docs/guides/developing-udp-and-tcp-clients-and-servers-in-go/

Deployed the application in kubernetes cluster and tested without istio, it is working fine.

But after installing istio(demo configuration, followed this url to install istio: https://istio.io/latest/docs/setup/getting-started/), and redeploying the apps to fill with envoy-proxy, the client is not connecting to server

Also using below command makes the server connect success

sh -c "echo world | nc 10.244.1.29 1234" is 

What am I doing wrong?

Upvotes: 1

Views: 547

Answers (1)

JibinNajeeb
JibinNajeeb

Reputation: 834

Posting the solution I found.

Issue: I was trying to connect to server using ip address and nodePort, which some how not working in istio environment

Solution: From Client instead of providing ip address and nodePort of server node, give service name and container port of server app.

Extra Info: For using client from outside cluster, create gateway and virtual service for server. In your external client provide nodePort and ip address of istio-ingress pod as server destination

Upvotes: 1

Related Questions