These are chat archives for spring-cloud/spring-cloud

9th
Nov 2018
Vajpai
@vajpai
Nov 09 2018 04:46
Is it possible to @Refesscope refresh properties values on fly without using config server, spring cloud config client and without server startup ? Properties files and log4j file are externalized
Lukáš Vasek
@bilak
Nov 09 2018 10:31
Hello, I didn't found room for config server so I'm asking here. Is there any endpoint through which I can set property for specified environment? I can't find that information in documentaiton.
Taimoor Choudhary
@TaimoorChoudhary
Nov 09 2018 14:17
Hi, I am using using spring-cloud-starter-kubernetes. When deployed in Kubernetes the application displays that the active profile is kubernetes but it doesn't pick any spring property from the ConfigMap
Taimoor Choudhary
@TaimoorChoudhary
Nov 09 2018 14:32

And in the logs we get:

Found service account namespace at: [/var/run/secrets/kubernetes.io/serviceaccount/namespace].
2018-11-09 14:25:39.995 DEBUG 1 --- [           main] k.p.KubernetesProfileApplicationListener : 'kubernetes' already in list of active profiles
2018-11-09 14:25:39.997  INFO 1 --- [           main] c.carbook.vehicles.VehiclesApplication   : The following profiles are active: kubernetes

but we don't get any log about the configmap being loaded like this

Located property source: ConfigMapPropertySource [name='configmap.name']
Josh Collins
@joshdcollins
Nov 09 2018 14:58
@TaimoorChoudhary I had a similar problem. That Starter POM doesn’t include the config project. I had to change to use spring-cloud-starter-kubernetes-all
@TaimoorChoudhary Also for what its worth I came to realize that spring-cloud-kubernetes 0.2.0 is what you need for springboot 1.5.x whereas spring-cloud-kubernetes 0.3.0 is meant for Springboot 2.x
Spencer Gibb
@spencergibb
Nov 09 2018 19:46
@bilak there is an endpoint to set values on a specific instance
@TaimoorChoudhary what versions are you using?
@vajpai config client only works with config server, @RefreshScope if from commons and works without them
@/all Spring Cloud Finchley is not compatible with boot 2.1.0. Greenwich RC1 will be released next week
Jeferson Cieza
@jeffersoncieza
Nov 09 2018 20:08
Hello. I am working on a project and I'd like to know what the approach is to integrate microservices developed in python into the spring cloud ecosystem. Any advice please!
Spencer Gibb
@spencergibb
Nov 09 2018 20:22
@jeffersoncieza can you be more specific? That's too broad to answer reasonably.
Jeferson Cieza
@jeffersoncieza
Nov 09 2018 20:25
Yes. My friends and I are developing a system using the microservice architecture. We are using the spring cloud capabilities. However, two of my friends developed some microservices using Python and Php. My question is: how can they integrate those microservices into the whole project developed in spring cloud? That is, how would they get their configuration files from the config server, how would they register into the eureka server, etc?
Thank you!
Spencer Gibb
@spencergibb
Nov 09 2018 20:33
config server has yaml and json endpoints
eureka is a different question all together. You can search for eureka clients in python or php. Or you could use a sidecar https://cloud.spring.io/spring-cloud-static/Finchley.SR2/single/spring-cloud.html#_polyglot_support_with_sidecar. If you would have started polyglot, I would have recommended consul instead of eureka
Jeferson Cieza
@jeffersoncieza
Nov 09 2018 20:37
Ohh I will check it. What about Eureka API? Is that also an alternative?
Spencer Gibb
@spencergibb
Nov 09 2018 20:41
I don't understand
Lukáš Vasek
@bilak
Nov 09 2018 20:51
@spencergibb can you point me to that code please?
or if there is some documentation about that