From a11d37fbe1873c7a7bf88fad4696d079bec7ee18 Mon Sep 17 00:00:00 2001 From: 98001yash Date: Fri, 23 Oct 2026 11:02:50 +0530 Subject: [PATCH] Document ignoring Consul service in Zuul routes Signed-off-by: 98001yash --- docs/modules/ROOT/pages/discovery.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/modules/ROOT/pages/discovery.adoc b/docs/modules/ROOT/pages/discovery.adoc index 5663c04e4..6bde71b46 100644 --- a/docs/modules/ROOT/pages/discovery.adoc +++ b/docs/modules/ROOT/pages/discovery.adoc @@ -52,6 +52,21 @@ To disable the Consul Discovery Client you can set `spring.cloud.consul.discover To disable the service registration you can set `spring.cloud.consul.discovery.register` to `false`. +[[using-zuul-with-consul]] +== Using Zuul with Consul + +When using Spring Cloud Netflix Zuul with Consul service discovery, Zuul may automatically create routes for discovered services, including the Consul service itself. + +To exclude the `consul` service from Zuul's automatically created routes, configure the `zuul.ignoredServices` property: + +.application.yml +---- +zuul: + ignoredServices: consul +---- + +This configuration prevents Zuul from automatically creating a route for the `consul` service. It does not disable Consul service discovery or service registration. + [[registering-management-as-a-separate-service]] === Registering Management as a Separate Service