When we deploy the kubernetes-hello-world-example on minikube or minishift, the springboot application is well started BUT if the configMap is modified then the bean message is not reloaded
Options used
spring.application.name=reload-example
spring.cloud.kubernetes.reload.enabled=true
spring.cloud.kubernetes.reload.mode=event
spring.cloud.kubernetes.reload.strategy=restart_context
Scenario played
mvn clean install fabric8:build fabric8:deploy
oc policy add-role-to-user view --serviceaccount=default
oc logs spring-cloud-reload-2-b1bke
The message is: Hello World 2!
2017-05-02 12:11:36.907 INFO 1 --- [ main] b.c.e.u.UndertowEmbeddedServletContainer : Undertow started on port(s) 8080 (http)
2017-05-02 12:11:36.918 INFO 1 --- [ main] o.s.cloud.kubernetes.examples.App : Started App in 4.319 seconds (JVM running for 19.026)
The message is: Hello World!
...
oc edit configmap/reload-example
oc logs spring-cloud-reload-2-b1bke
The message is: Hello World!
The message is: Hello World!
The message is: Hello World!
...
When we deploy the
kubernetes-hello-world-exampleon minikube or minishift, the springboot application is well started BUT if the configMap is modified then the bean message is not reloadedOptions used
Scenario played