Skip to content

Commit 6a245cb

Browse files
author
Ryan Baxter
committed
Adding ribbon back to docs. Fixes spring-cloud#555
1 parent 288d709 commit 6a245cb

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,26 @@ The reload feature of Spring Cloud Kubernetes is able to trigger an application
643643
By default, this feature is disabled. You can enable it by using the `spring.cloud.kubernetes.reload.enabled=true` configuration property (for example, in the `application.properties` file).
644644

645645
The following levels of reload are supported (by setting the `spring.cloud.kubernetes.reload.strategy` property):
646+
646647
* `refresh` (default): Only configuration beans annotated with `@ConfigurationProperties` or `@RefreshScope` are reloaded.
647648
This reload level leverages the refresh feature of Spring Cloud Context.
649+
648650
* `restart_context`: the whole Spring `ApplicationContext` is gracefully restarted. Beans are recreated with the new configuration.
651+
In order for the restart context functionality to work properly you must enable and expose the restart actuator endpoint
652+
[source,yaml]
653+
====
654+
----
655+
management:
656+
endpoint:
657+
restart:
658+
enabled: true
659+
endpoints:
660+
web:
661+
exposure:
662+
include: restart
663+
----
664+
====
665+
649666
* `shutdown`: the Spring `ApplicationContext` is shut down to activate a restart of the container.
650667
When you use this level, make sure that the lifecycle of all non-daemon threads is bound to the `ApplicationContext`
651668
and that a replication controller or replica set is configured to restart the pod.

docs/src/main/asciidoc/_configprops.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
|spring.cloud.kubernetes.reload.monitoring-secrets | false | Enables monitoring on secrets to detect changes.
7272
|spring.cloud.kubernetes.reload.period | 15000ms | Sets the polling period to use when the detection mode is POLLING.
7373
|spring.cloud.kubernetes.reload.strategy | | Sets the reload strategy for Kubernetes configuration reload on change.
74+
|spring.cloud.kubernetes.ribbon.cluster-domain | cluster.local | cluster domain.
75+
|spring.cloud.kubernetes.ribbon.enabled | true | Ribbon enabled,default true.
76+
|spring.cloud.kubernetes.ribbon.mode | | {@link KubernetesRibbonMode} setting ribbon server list with ip of pod or service name. default value is POD.
7477
|spring.cloud.kubernetes.secrets.enable-api | false |
7578
|spring.cloud.kubernetes.secrets.enabled | true | Enable the Secrets property source locator.
7679
|spring.cloud.kubernetes.secrets.labels | |

0 commit comments

Comments
 (0)