From 416b6799b80d63edc2ee4fb3fa9acc3e8f9b0e4b Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 22 Jan 2021 11:52:04 +0000 Subject: [PATCH] Bumping versions --- README.adoc | 10 ++++++++++ docs/src/main/asciidoc/_configprops.adoc | 1 + 2 files changed, 11 insertions(+) diff --git a/README.adoc b/README.adoc index 83513323..387e3aeb 100644 --- a/README.adoc +++ b/README.adoc @@ -152,6 +152,16 @@ spring.cloud.kubernetes.discovery.all-namespaces=true ---- ==== +To discover service endpoint addresses that are not marked as "ready" by the kubernetes api server, you can set the following property in `application.properties` (default: false): + +==== +[source] +---- +spring.cloud.kubernetes.discovery.include-not-ready-addresses=true +---- +NOTE: This might be useful when discovering services for monitoring purposes, and would enable inspecting the `/health` endpoint of not-ready service instances. +==== + If, for any reason, you need to disable the `DiscoveryClient`, you can set the following property in `application.properties`: ==== diff --git a/docs/src/main/asciidoc/_configprops.adoc b/docs/src/main/asciidoc/_configprops.adoc index d5eea1b2..7863d867 100644 --- a/docs/src/main/asciidoc/_configprops.adoc +++ b/docs/src/main/asciidoc/_configprops.adoc @@ -56,6 +56,7 @@ |spring.cloud.kubernetes.discovery.cache-loading-timeout-seconds | `60` | Timeout for initializing discovery cache, will abort the application if exceeded. |spring.cloud.kubernetes.discovery.enabled | `true` | If Kubernetes Discovery is enabled. |spring.cloud.kubernetes.discovery.filter | | SpEL expression to filter services AFTER they have been retrieved from the Kubernetes API server. +|spring.cloud.kubernetes.discovery.include-not-ready-addresses | `false` | If endpoint addresses not marked 'ready' by the k8s api server should be discovered. |spring.cloud.kubernetes.discovery.known-secure-ports | | Set the port numbers that are considered secure and use HTTPS. |spring.cloud.kubernetes.discovery.metadata.add-annotations | `true` | When set, the Kubernetes annotations of the services will be included as metadata of the returned ServiceInstance. |spring.cloud.kubernetes.discovery.metadata.add-labels | `true` | When set, the Kubernetes labels of the services will be included as metadata of the returned ServiceInstance.