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
• 14,080 points
45 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
• 37,320 points

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,810 points
158 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
• 37,320 points
43 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,810 points
41 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
1,141 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
• 14,080 points
87 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
• 37,320 points
28 views