Single LoadBalancer for multiple services

0 votes

I have these services hosted in my Kubernetes cluster on AWS.

  • An nginx server, on ports 80 and 443.
  • A Minecraft server, at port 25565.

I've set both of them to type:LoadBalancer and hence both of them an elastic loadbalancer. But these loadbalancers are expensive and i was thinking of having a single LoadBalancer for both the services. Is that possible, if yes how?

Sep 24, 2018 in Kubernetes by Hannah
• 18,520 points
1,359 views

1 answer to this question.

0 votes

You could simply use nginx as a proxy for your minecraft server, and forward traffic from ingress port 25565 to the minecraft server. That way all traffic goes through one Service. This way you'll save money for one LoadBalancer.

answered Sep 24, 2018 by Kalgi
• 52,350 points
This is not true. The Minecraft Protocol does not allow redirecting. Nginx Ingress is useless in this scenario
It depends on the requirement. But as we know all instances have an internal connection if they are in the same VPC. So we can only use a single load balancer between these instances.

Hello @Severin Meier

I have gone through the above scenario and it is quite acceptable for me. Could you please provide me with more information about your point of view  so that I can also correlate? 

Related Questions In Kubernetes

0 votes
1 answer

Unable to get cgroup stats for docker and kubelet services

Try and start kubelet with the following ...READ MORE

answered Sep 3, 2018 in Kubernetes by DareDev
• 6,890 points
5,103 views
0 votes
1 answer

Create LoadBalancer for kubernetes cluster in aws

Hello @Lina, If you're running your cluster on ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
747 views
0 votes
1 answer

Nginx routing for kubernetes services

Hey, backend is a service running on ...READ MORE

answered Feb 8, 2019 in Kubernetes by Kalgi
• 52,350 points
1,654 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,456 views
0 votes
3 answers

Nginx reverse proxy URL getting rewritten

Hey @Gopi, try your ingress probably like ...READ MORE

answered Feb 12, 2019 in Kubernetes by Kalgi
• 52,350 points
4,712 views
0 votes
2 answers

single point of entry for multiple services in kubernetes ingress

I tried having something similar too. Deployment apiVersion: extensions/v1beta1 kind: ...READ MORE

answered Sep 7, 2018 in Kubernetes by Hannah
• 18,520 points
2,676 views
0 votes
1 answer

Is possible to have same k8s service for multiple pods?

Reserve a static IP and then assign ...READ MORE

answered Jul 20, 2018 in Kubernetes by Kalgi
• 52,350 points
3,147 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP