question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FeignClients do not currently work without the spring-cloud-kubernetes-ribbon implementation

See original GitHub issue

Using 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:closed
  • Created 3 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
spencergibbcommented, Jun 26, 2020

No, you have to change the url in your project to https

1reaction
Aloscommented, Jun 25, 2020

Aha! Fixing the permissions did make the sample app work now! Thanks for all the help @piomin. Also thanks for pointing me to:

<dependency>
    <groupId>io.fabric8</groupId>
    <artifactId>kubernetes-server-mock</artifactId>
    <scope>test</scope>
</dependency>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found