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

21st
Dec 2017
Ali Shahbour
@shahbour
Dec 21 2017 09:03
I am thinking in deploying my spring cloud microservices into kubernetes , is that a good idea ? I found little info about this integration
Dave Syer
@dsyer
Dec 21 2017 10:02
I'm not aware of any issues.
You might have to disable the default container resource limits to start apps quickly
Ali Shahbour
@shahbour
Dec 21 2017 10:03
thanks what about eureka , i should use it or move to kubernetes discovery
ok i will give it a try
Dave Syer
@dsyer
Dec 21 2017 10:11
Eureka is a valid choice. So is k8s native (easier to get started but will never work across clusters).
Ali Shahbour
@shahbour
Dec 21 2017 10:21
Ok thanks for the info , i will stick with eureka for now as i already have a ready product
omerholz
@omerholz
Dec 21 2017 18:12

hi guys!
first time spring user here. I'm using spring cloud data flow server. I have setup sftp source with the log sink starter apps. For some reason, looking at the log sink, I don't get the file_name in the message headers. Looking at the source logs, I do see the file name in the headers of the messages sent, but while the sftp source documentation states that the file name should be in a header called file_name, I see it in a header file_remoteFile. Looking at the logs of the log sink, I don't see these headers at all and I see no indication of the file name, just headers related to the kafka.

I posted snippets from the logs of both the source and the sink in:
https://gist.github.com/omerholz/aedb2245f3230eacc4e96a506e57fcfa

I've posted this question with the stream definition and logs here: https://stackoverflow.com/q/47894990/304093

omerholz
@omerholz
Dec 21 2017 20:20
configuring the log application to --expression=#root --level=debug doesn't make any difference. Also, writing my own sink that tries to access the file_name header I get an error message that such header does not exist
Oana Patrascu
@oanapat
Dec 21 2017 22:13

Hello everyone, this might be a bit extensive and would appreciate the help. Can someone please help with the following:
https://spring.io/guides/gs/centralized-configuration/ ?

More specifically:

  1. Am I correct in thinking that at the end of this tutorial I will have set up a Config Server by setting up both the client and service?
  2. I had to create a git repository with the Hello World message, path which I then put in the config-service, is this understanding correct?
  3. How do I start the Config Service?
Spencer Gibb
@spencergibb
Dec 21 2017 23:10
1) yes, 2) yes, 3) run ConfigServiceApplication.main()
Oana Patrascu
@oanapat
Dec 21 2017 23:18
@spencergibb thank you! I got it to run but ran into the bellow error:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Dec 21 15:12:11 PST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
Spencer Gibb
@spencergibb
Dec 21 2017 23:20
what url are you trying to view?
Oana Patrascu
@oanapat
Dec 21 2017 23:27
From my understanding, when navigating to localhost:8080 (which I configured after the creation of the Git repository) I should see the Hello World message. This is my implementation in the configuration-service --> resources--> application.properties :
server.port=8080

spring.cloud.config.server.git.uri= https://bitbucket....
To confirm, I do not need to follow this tutorial https://cloud.spring.io/spring-cloud-config/spring-cloud-config.html and configure the config server separately, correct? ( I want to make sure that the premise of the article and the steps are understood :) )