<p>I am working on a demo project , which has 5 microservices - discovery server , api-gateway , user-order-detail , order and user service.</p>

<p>I will expose the order and user service internally on GKE</p>

<p>I will expose the user-order-detail service externally which will call the other two services using a rest endpoint </p>

<p>Services that are up on google kubernetes engine:</p>

<p>user-order-detail LoadBalancer
kubernetes ClusterIP
order-management LoadBalancer
user-management LoadBalancer</p>

<p><strong>user-order-detail hits an endpoint to retrieve all users. I am getting this error :No matches for the virtual host name :user-management</strong></p>

<p>Code :</p>

<pre><code>String url = "user-management/user";
InstanceInfo instance = eurekaClient.getNextServerFromEureka("user-management", false);
Object response = restTemplate.getForObject(instance.getHomePageUrl() + url +"/" + userId, Object.class);
</code></pre>

<p>I am having problem in inter-service communication.please help</p>

<p><strong>UPDATE:</strong>
I was able to redirect my service,but I am getting connection timeout error.How should I solve this?</p>

<p>I/O error on GET request for "<a href="http://user-management/user-management/user/1" rel="nofollow noreferrer">http://user-management/user-management/user/1</a>": Operation timed out (Connection timed out); nested exception is java.net.ConnectException: Operation timed out (Connection timed out)</p>

HMT
<p>check the port for your service and target port 
port can be 80
targetport </p>
