Kubernetes Load Balancers AWS

时间:2018-04-20 01:15:36

标签: amazon-web-services kubernetes elastic-load-balancer

We've currently got a production application using Kubernetes on AWS. Everything's working very well except I think we've made a misconfiguration problem.

We expose different services from within the cluster on domain names and we're now up to about 5 different services. Kubernetes' standard way to expose these services is through load balancers, but in our config we've created 6 load balancers. As you can imagine that many load balancers running can incur substantial cost overheads.

Is there any way to configure an individual load balancer to route to kubernetes targets based on domain names? So we can have one domain pointing at an ELB and have that route to the correct services internally?

1 个答案:

答案 0 :(得分:1)

您可以使用Ingress控制器。 Ingress将设置单个AWS负载均衡器,并可用于公开许多服务。如果您的服务都是基于HTTP的,它应该可以很好地工作。有关入口的详细信息,您可以查看Kubernetes docs或默认Nginx based implementation。如果需要,还有一些其他实现使用例如Envoy代理等。