Locally I am able to run the application but when I deploy it on GCP I get an error saying
com.netflix.client.ClientException: Load balancer does not have available server for client: custom-index.rhines-dev.svc.cluster.local
which is the host url I want to forward traffic to via zuul.
My service and routes have been registered.
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'
I keep reading suggestions about eureka but I do not need a eureka server. I am building a gateway and I just want zuul to route my traffic.
For me the answer was pretty simple, add http:// to the URL. I am ashamed.