FeignClients do not currently work without the spring-cloud-kubernetes-ribbon implementation
See original GitHub issueUsing the latest version of Spring Cloud Kubernetes without the spring-cloud-kubernetes-ribbon implementation causes FeignClients to not work:
com.netflix.client.ClientException: Load balancer does not have available server for client: my-awesome-service
Services are running in the same Kubernetes cluster, same namespace and was working with the spring-cloud-kubernetes-ribbon implementation.
The current project is set up with Hoxton.SR5
and :
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-kubernetes-all</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${versions.spring-cloud}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (9 by maintainers)
Top Results From Across the Web
Using 'feign clients' without springboot is possible?
Yes, it's possible. You can find the documentation on their Github page. Feign wasn't integrated with Spring initially.
Read more >Microservices With Spring Cloud Kubernetes - Piotr's TechBlog
Spring Cloud Kubernetes allows to integrate Kubernetes discovery with Spring Boot application by providing implementation of DiscoveryClient .
Read more >Spring Cloud OpenFeign
Feign is a declarative web service client. It makes writing web service clients easier. To use Feign create an interface and annotate it....
Read more >Quick Guide to Microservices With Kubernetes, Spring Boot ...
Learn how to get a Spring Boot microservices application project up and running quickly with Kubernetes and Docker in this tutorial on ...
Read more >Build Microservice Architecture With Kubernetes, Spring Boot ...
Let's proceed to the implementation. Currently, the newest stable version of Spring Cloud is Finchley.RELEASE . This version of spring-cloud-dependencies ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No, you have to change the url in your project to https
Aha! Fixing the permissions did make the sample app work now! Thanks for all the help @piomin. Also thanks for pointing me to: