Kuberentes cluster IP vs FQDN of a service

5/21/2020

I'm curious what's the benefit of using Cluster IP in kubernetes. I know if one app needs to access service of other app. It can directly use FQDN of that service, without the trouble of creating Cluster IP. But i still see lots of places Cluster IP being used.

-- Gabriel Wu
kubernetes
kubernetes-ingress

1 Answer

5/29/2020

From my exp FQDN uses much more, however there are pretty much examples with Cluster IP direct usage. Benefit? dont think so. I think this is more philosophical question and you can do the way you prefer more.

Referring to Connect a Front End to a Back End Using a Service from kubernetes page will show optimal way how to do similar things

-- VKR
Source: StackOverflow