-
Notifications
You must be signed in to change notification settings - Fork 1k
Kubernetes service discovery doesn't work along with simple discovery service #1286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. |
I'm attaching spring boot project. I don't attach K8s yaml? When you run with profile local it should connect to eureka and it's working. When you deploy to K8s it doesn't work. Endpoint: |
I just imported your sample, and what am I supposed to see there? How do I understand what problem are you facing? I assume you build an image out of that project, have a deployment. So after it ends up in k8s cluster (again, show us how you do that), what are you doing with it? You make some requests? How is eureka related to this and where is it in your project set-up? |
Local without K8s (everything working fine)
On K8s (not working)
It isn't working when I'm using simple discovery client combined with K8s service discovery. It was working on version 2.x. Also when i combine simple discovery client with eureka server (without any K8s) it's also working. |
Much, much better now! Thank you. I can re-produce and I think I know where the problem is... I'll update this post once I have all the proper conclusions. |
This is the code to be blamed:
Specifically this part: That is a bug. The good part, is that because of recent simplifications, there is no fix needed here (I will still add a minor integration test), that code was removed. What I did is test this against our current
in your dependency, deploy locally in k8s and :
@ryanjbaxter I'll add a minor integration test case here, so please let's keep it open until then. Thank you. |
perfect, thank you. Have you any estimate time when you release next version? |
Tentative release dates can be found here https://github.com/spring-cloud/spring-cloud-release/milestones |
I've added some test cases for this issue in this PR |
Describe the bug
I want to have 2 layers of discovery service: Kubernetes discovery client and simple discovery client. It's working with eureka (local dev env) and it was working before 3.0 spring-cloud-kubernetes.
Sample
Here's my configs:
and I've got:
Load balancer does not contain an instance for the service xyz-custom
The text was updated successfully, but these errors were encountered: