Skip to content
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

The SSL connection could not be established - While setting up LoadBalancer using Consul and LeastConnection. #1811

Open
raman-m opened this issue Nov 29, 2023 Discussed in #1804 · 5 comments
Assignees
Labels
2023 Annual 2023 release accepted Bug or feature would be accepted as a PR or is being worked on Load Balancer Ocelot feature: Load Balancer sample Ocelot samples as examples of complete feature web apps Service Discovery Ocelot feature: Service Discovery

Comments

@raman-m
Copy link
Member

raman-m commented Nov 29, 2023

Discussed in #1804

Originally posted by ks1990cn November 24, 2023
Hi @raman-m @ggnaegi / Anyone ,

Can you please help me to resolve error mentioned in title?
I've created 3 web api projects - 2 of them to replicate DownstreamApi Instance1 and Instance2, 1 is to replicate API Gateway.

when I try to reach downstream using upstream of API Gateway, and when it tries to find hostandport anc check for services available, it suddenly breaks stating SSL Connection could not be established.

Can you help me by cloning below code and let me know what I am missing in setup. Here is GIF of problem and code from where you can clone.

Please let me know any input required from me.

SSLissue

Code path changes I've done:
https://github.com/ks1990cn/Ocelot/tree/LoadBalancerSample

@raman-m raman-m added the question Initially seen a question could become a new feature or bug or closed ;) label Nov 29, 2023
@raman-m
Copy link
Member Author

raman-m commented Nov 29, 2023

Hello @ks1990cn!
Good you answer here plz?
This is your official ticket. 😉

I'll update the description later...

@raman-m raman-m added Service Discovery Ocelot feature: Service Discovery sample Ocelot samples as examples of complete feature web apps Load Balancer Ocelot feature: Load Balancer 2023 Annual 2023 release and removed question Initially seen a question could become a new feature or bug or closed ;) labels Nov 29, 2023
@ks1990cn
Copy link
Contributor

Thank you so much @raman-m .

Actually I am done with question, just I want code review to add sample code demonstrating LoadBalancer with Consul.

That I am using alot while working on backlog items to replicate. I can also add on quick documentation so anyone can quickly change on that configuration locally and replicate any bug.

Just to do manual testing also we can have config set up.

@raman-m
Copy link
Member Author

raman-m commented Nov 29, 2023

You are assigned officially! 😉
I'll review the PR later today...
Good luck!

@raman-m raman-m added the accepted Bug or feature would be accepted as a PR or is being worked on label Nov 29, 2023
@raman-m
Copy link
Member Author

raman-m commented Dec 2, 2023

@ks1990cn commented on Nov 29:

Actually I am done with question, just I want code review to add sample code demonstrating LoadBalancer with Consul.

Is this a general idea and goal/task of this issue?

@ks1990cn
Copy link
Contributor

ks1990cn commented Dec 2, 2023

@raman-m commented on Dec 2

I feel its a general idea, cause I am able to replicate most of the issues using this sample configuration. And its for helping anyone going ahead to easy start with debugging and replicating any issue (If any new person wants to start contribution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023 Annual 2023 release accepted Bug or feature would be accepted as a PR or is being worked on Load Balancer Ocelot feature: Load Balancer sample Ocelot samples as examples of complete feature web apps Service Discovery Ocelot feature: Service Discovery
Projects
None yet
2 participants