Giter VIP home page Giter VIP logo

Comments (11)

ryanjbaxter avatar ryanjbaxter commented on July 17, 2024

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

from spring-cloud-kubernetes.

mohitbang740 avatar mohitbang740 commented on July 17, 2024

It is just vanilla with spring boot and spring cloud without any code. It has below dependencies which are managed by the BOM

  • spring-cloud-starter-gateway
  • spring-cloud-kubernetes-client-all
  • spring-boot-starter-actuator
  • spring-cloud-starter-loadbalancer

The catch here is, the same piece of application works fine in my local machine but it doesn't get boot up in Openshift.

Below are the configs which are added in application.yaml

spring:
  cloud:
    kubernetes:
      enabled: true
    gateway:
      enabled: true
      discovery.locator.enabled: true
      discovery.locator.lower-case-service-id: true

Let me know if any thing else is needed, as the machine where the application lies won't allow to upload any piece of code. If needed we can have a discussion on this.

from spring-cloud-kubernetes.

ryanjbaxter avatar ryanjbaxter commented on July 17, 2024

It would still be helpful to provide the exact code to reproduce the problem so we can try and replicate it. Have you tried this on a vanilla k8s cluster?

from spring-cloud-kubernetes.

mohitbang740 avatar mohitbang740 commented on July 17, 2024

I created a pure vanilla application with spring cloud gateway and it worked fine for me.
To deep dive into the issue, I tried by adding the library and configuration which we had in our gateway application.
I found the issue occur when I enable the FeignClients with @EnableFeignClients annotation at that time the system is not starting up.

Are you aware about the configuration that need to be done here?

from spring-cloud-kubernetes.

ryanjbaxter avatar ryanjbaxter commented on July 17, 2024

That shouldn’t require any extra configuration that I’m aware of

from spring-cloud-kubernetes.

mohitbang740 avatar mohitbang740 commented on July 17, 2024

Any idea about the below statement mentioned in the RELEASE_NOTES can this create the issue?
As after disabling the EnableFeignClient annotation it started working fine.
Is it something feign is not compatible with the reactive web we get in gateway, or something else...

[Switched to default eager @FeignClient attribute resolution. If you would like to go back to lazy attributes resolution (for example, for tests with Spring Cloud Contract integration), set spring.cloud.openfeign.lazy-attributes-resolution to true.]

from spring-cloud-kubernetes.

ryanjbaxter avatar ryanjbaxter commented on July 17, 2024

I am not sure how you are combining OpenFeign and the Gateway, but no they are not compatible. OpenFeign is blocking and the Gateway needs is non-blocking.

from spring-cloud-kubernetes.

mohitbang740 avatar mohitbang740 commented on July 17, 2024

So this can be the reason that application not started?
But the same application started in my local, any idea what can be done?

from spring-cloud-kubernetes.

ryanjbaxter avatar ryanjbaxter commented on July 17, 2024

Doesn’t sound like it but it’s impossible for me to tell since I don’t have anything to reproduce the problem with

from spring-cloud-kubernetes.

spring-cloud-issues avatar spring-cloud-issues commented on July 17, 2024

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

from spring-cloud-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.