Spring Cloud无法加载配置

时间:2017-11-16 15:12:28

标签: java spring spring-boot kubernetes

我在kompose up的kubernetes集群上部署了this Spring应用程序] 1。部署后,许多服务的pod将进入CrashLoopBackoff状态。我遇到问题的服务是帐户服务,监控服务,通知服务和统计服务。看来,当服务启动时,它们会遇到以下错误:

2017-11-15 22:10:52.857  INFO 1 --- [           main] c.p.monitoring.MonitoringApplication     : Started MonitoringApplication in 0.511 seconds (JVM running for 8.579)
2017-11-15 22:10:52.882  INFO 1 --- [           main] o.s.c.s.b.r.RabbitMessageChannelBinder   : declaring queue for inbound: springCloudHystrixStream.anonymous.oCdNGHmBRPO_Z3LMusKS2Q, bound to: springCloudHystrixStream
2017-11-15 22:11:52.953  WARN 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is org.springframework.context.ApplicationContextException: Failed to start bean 'inputBindingLifecycle'; nested exception is org.springframework.amqp.AmqpIOException: java.net.SocketTimeoutException: connect timed out

可以找到完整的日志here。任何帮助是极大的赞赏。我假设这是一个Spring / Java相关的问题,但它可能是一个与Kubernetes相关的问题,因为该应用程序被设计为在docker swarm上运行。

0 个答案:

没有答案