From 98b9e3ec2e3a83eade5aa4dede2d5462f72366b9 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 16 May 2019 17:17:04 -0400 Subject: [PATCH] Adding not about requiring @EnableScheduling to docs. Fixes #385 --- docs/src/main/asciidoc/discovery-client.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/main/asciidoc/discovery-client.adoc b/docs/src/main/asciidoc/discovery-client.adoc index 39331d5b..2d0bead0 100644 --- a/docs/src/main/asciidoc/discovery-client.adoc +++ b/docs/src/main/asciidoc/discovery-client.adoc @@ -55,3 +55,7 @@ spring.cloud.kubernetes.discovery.enabled=false Some Spring Cloud components use the `DiscoveryClient` in order to obtain information about the local service instance. For this to work, you need to align the Kubernetes service name with the `spring.application.name` property. + +Spring Cloud Kubernetes can also watch the Kubernetes service catalog for changes and update the +`DiscoveryClient` implementation accordingly. In order to enable this functionality you need to add +`@EnableScheduling` on a configuration class in your application.