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,420 points
348 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
• 51,970 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,870 points
1,155 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
• 51,970 points
138 views
0 votes
1 answer

Getting the pod's ip address for the container inside of it

You can make sure that the replication ...READ MORE

answered Aug 24, 2018 in Kubernetes by DareDev
• 6,870 points
671 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
8,813 views
0 votes
1 answer
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,420 points
576 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
• 51,970 points
619 views