Comments (11)
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.
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.
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.
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.
That shouldn’t require any extra configuration that I’m aware of
from spring-cloud-kubernetes.
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.
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.
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.
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.
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)
- KubernetesDiscoveryClientAutoConfiguration will not create non-reactive DiscoveryClient Bean if WebClient is on the classpath HOT 4
- No constructor or factory method candidate found for Root bean: class [org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties] HOT 1
- Repackage spring-cloud-kubernetes-configserver so that it can also be used as a dependency HOT 1
- Upgrade okio-jvm dependency to atleast 3.1.0 HOT 6
- Spring cloud kuberentes watcher spring boot 3.x help required HOT 8
- Documentation of IAM required IAM permissions for lead election when using in EKS? HOT 5
- Spring cloud kubernetes - Unable to reload with ConfigMap change HOT 12
- Spring Cloud Kubernetes cant refresh config HOT 22
- Lack of alternative for spring-cloud-kubernetes-config without (presumably deprecated) bootstrap.yml and lack of documentation for migrating it HOT 30
- Investivate IT Failures HOT 15
- Upgrade kubernetes-java-client.version to 19.0.0 and adjust spring-cloud-kubernetes to the new version
- Config Client Integration Documentation for Spring Cloud Kubernetes Config Server HOT 9
- question about kubernetes discovery controller image HOT 2
- SourceDataEntriesProcessor won't process "file-like keys" from Configmaps including file-like and property-like keys HOT 9
- kubernetes discovery "/apps" endpoint bug or question HOT 6
- Spring Cloud Kubernetes Configuration Watcher does not work as expected HOT 6
- document configuration watcher better
- Configuring "spring.cloud.kubernetes.secret.apps" is not working HOT 5
- Selective namespace functionality doesn't work when @Bean of type List exists HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-kubernetes.