Would be possible to discover the addresses of PODS using one of its labels?

5/28/2020

I've started to play with K8S and Istio in order to host a java based application.

I'm creating two java small apps, MSa and MSb, generating its docker images and want to deploy them into two different PODs. Suppose that Ma should access Mb service.

I know that exist some tools as Hazelcast, Consul, and others that use multicast in order to discover their cloud members, but I read that K8s didn't support multicast and I also want to get things as simpler as possible.

So, would it be possible to discover the MSb address programmatically using its POD labels?

-- Cristiano
istio
java
kubernetes

0 Answers