<p>I have built two services in k8s cluster, how can they interact with each other, if I want to make http request from one service to another, I know I can’t use local host, but how can I know the host when I am coding.</p>

John Wu
<p>Service objects are automatically exposed in DNS as <code>&lt;servicename&gt;.&lt;namespace&gt;.svc.&lt;clusterdomain&gt;</code> where <code>clusterdomain</code> is usually <code>cluster.local</code>. The default resolv.conf allows for relative lookups so if the service is in the same namespace you can use just the name, otherwise <code>&lt;servicename&gt;.&lt;namespace&gt;</code>.</p>
