Reach container/app by hostname

53 views
Skip to first unread message

Luca Lupo

unread,
Aug 14, 2020, 10:28:08 AM8/14/20
to Google App Engine
Hi There,

I have 2 clusters: cluster A and cluster B. 

I have an app A running on cluster A (docker container) and an app B running on cluster B (docker container).

All instances of app B needs to send messages (REST API) to app A and I want that to be happening using the app hostname (the one google Kubernetes assigns to each pod of a deployed app) but the host cannot be resolved apparently because app A fails to reach app B using app B hostname.

Any idea what I need to do here? Note that I can expose a load balancer and that works BUT I really need to reach individual pods here.

Thanks!

Jason

unread,
Sep 10, 2020, 3:29:18 PM9/10/20
to Google App Engine
Hi,

The first way to do it is as you have already stated, exposing the deployment. The other way I recommend is using Istio [1]. Istio helps create a multi cluster mesh on a shared network to allow communication between the clusters. I would suggest reading the attached article and see if this can help in regards to your use case.

Reply all
Reply to author
Forward
0 new messages