<pre><code>kubectl get svc -n test

NAME                               TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)                       AGE
rmq-deneme-rabbitmq-ha             ClusterIP   10.43.34.100   &lt;none&gt;        15672/TCP,5672/TCP,4369/TCP   33h
rmq-deneme-rabbitmq-ha-discovery   ClusterIP   None           &lt;none&gt;        15672/TCP,5672/TCP,4369/TCP   33h
</code></pre>
<p>I want to change default record of service from</p>
<pre><code>rmq-deneme-rabbitmq-ha.test.svc.cluster.local 
</code></pre>
<p>to</p>
<pre><code>rmq-deneme-rabbitmq-ha.{custom.domain}
</code></pre>
<p>I could not find any documentation to do this. Is it possible to do ?</p>

aekiratli
<p>You can't do this in Kubernetes itself, but you might be able to configure <a href="https://coredns.io/" rel="nofollow noreferrer">CoreDNS</a> (the DNS service in your cluster) to map your custom domain to the default domain of the service.</p>
<p>See this page: <a href="https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/" rel="nofollow noreferrer">Custom DNS Entries For Kubernetes</a>.</p>
