<p>I have a Kubernetes cluster on Linux with one master node and two slave nodes. I have installed &amp; created services for a eureka-server and Zuul with multiple replicas which are accessible by NodePorts. In order to enable load balancing, we need to register Zuul service in Eureka.</p>

<p>Can anybody let me know how we can register Zuul on eureka-server?</p>

<p>If you look at the configuration for <a href="https://github.com/Netflix/zuul/wiki/Core-Features#service-discovery" rel="nofollow noreferrer">Zuul Service Discovery</a> you can see that there is an option:</p>

<pre><code>eureka.serviceUrl.default=http://${region}.${eureka.eurekaServer.domainName}:7001/${eureka.eurekaServer.context}
</code></pre>

<p>You would have to point that option to your eureka-server <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">Kubernetes Service</a>. Based on the <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/" rel="nofollow noreferrer">DNS Kubernetes convention</a> it would be something like this:</p>

<pre><code>eureka-server-service.&lt;k8s-namespace&gt;.svc.cluster.local:&lt;port-of-service-you-exposed&gt;
</code></pre>
