我可以在本地运行该应用程序,但是当我在GCP上部署它时,我得到一个错误消息:
com.netflix.client.ClientException: Load balancer does not have available server for client: custom-index.rhines-dev.svc.cluster.local这是我想通过zuul转发流量到的主机url。
我的服务和路由已注册。
zuul:
ignoredPatterns:
- /custom/**
host:
connect-timeout-millis: 4000
socket-timeout-millis: 4000
sensitiveHeaders:
routes:
serviceId: rhines
path: /**
url: ${GATEWAY_RHINES_ROUTE:http://localhost:8090}gradle
// netflix-zuul
implementation group: 'org.springframework.cloud', name: 'spring- cloud-starter-netflix-zuul', version: '2.2.9.RELEASE'我一直在阅读有关eureka的建议,但我不需要eureka服务器。我正在构建一个网关,我只想让zuul来路由我的流量。
发布于 2021-08-30 09:30:41
对我来说,答案非常简单,将http://添加到URL。我很羞愧。
https://stackoverflow.com/questions/68917430
复制相似问题