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

30th
Jul 2018
Zakaria Amine
@zak905
Jul 30 2018 12:03
hey everybody
I have a config server application with spring boot 2
it is working fine locally inside docker
but when I deploy it with kubernetes, it is unable to pull the reposiotry from github
is there any additional parameters I need to consider when deploying in kubernetes ?
Zakaria Amine
@zak905
Jul 30 2018 12:26
when I try curl 10.108.254.118:4576/config-KUBE.yaml
I get
{"timestamp":"2018-07-30T12:26:34.608+0000","status":404,"error":"Not Found","message":"Cannot clone or checkout repository: git@github.com:zak905/configuration.git","path":"/config-KUBE.yaml"}
it works perfectly locally (without kubernetes)
Zakaria Amine
@zak905
Jul 30 2018 13:33
also I am surprised that no logging is done when returning this message even with debug=true
this is all I can see
2018-07-30 13:23:44.751 DEBUG 1 --- [nio-4576-exec-4] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Looking up handler method for path /error
2018-07-30 13:23:44.752 DEBUG 1 --- [nio-4576-exec-4] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Did not find handler method for [/error]
2018-07-30 13:23:44.752 DEBUG 1 --- [nio-4576-exec-4] a.e.w.s.ControllerEndpointHandlerMapping : Looking up handler method for path /error
2018-07-30 13:23:44.752 DEBUG 1 --- [nio-4576-exec-4] a.e.w.s.ControllerEndpointHandlerMapping : Did not find handler method for [/error]
maybe something tracing the error cause would be helpful
like a stacktrace, I am pretty sure there is some exception thrown somewhere
Marcos Barbero
@marcosbarbero
Jul 30 2018 15:01
does the kubernetes container has access to git@github.com:zak905/configuration.git? @zak905
Zakaria Amine
@zak905
Jul 30 2018 15:07
it does not :) it turns out there is a DNS problem in minikube
probably this has nothing to do with spring
Zakaria Amine
@zak905
Jul 30 2018 16:35
here is the related issue: kubernetes/minikube#1451
in case somebody faces the same issue
Zakaria Amine
@zak905
Jul 30 2018 16:40
as a workaround I am using the ip address git@192.30.253.112:zak905/configuration.git