我正在尝试用Spring管理服务器安装Spring执行器。我的本地机器工作正常,但在openshift云中,我遇到了一些问题.
局部
d.c.b.a.c.r.ApplicationRegistrator : Application registered itself as {id=93a4432e, name=orbe, managementUrl=http://localhost:8080/orbe, healthUrl=http://localhost:8080/orbe/status, serviceUrl=http://localhost:8080/orbe, statusInfo={}}}, source=http-api, metadata={}, info={}}云
d.c.b.a.c.r.ApplicationRegistrator : Application registered itself as {id=7068c1d1, name=orbe, managementUrl=http://orbe-api-334-ciunv:8080/orbe, healthUrl=http://orbe-api-334-ciunv:8080/orbe/status, serviceUrl=http://orbe-api-334-ciunv:8080/orbe, statusInfo={status=UNKNOWN, timestamp=1496071160897, details={}}, source=http-api, metadata={}, info={}}在本地,应用程序有正确的主机(localhost),但在云Openshift (Kubernetes)中,主机名是POD名称容器,不起作用(Spring没有检测到应用程序,健康检查返回未知)。
拜托有人能帮我吗?谢谢!
发布于 2017-05-29 20:32:57
我在application.yml中找到了解决方案,覆盖了管理-url:
spring:
boot:
admin:
client:
management-url: http://remote-docker-host:8080 #docker host更新Spring引导2.0:
spring:
boot:
admin:
client:
url: http://spring-boot-admin-server-url:8080
instance:
service-url: http://you-application-url:8080https://stackoverflow.com/questions/44249001
复制相似问题