[英]Load balancing Kubernetes cluster across two different cloud providers
I want to create one kubernetes cluster on GCE and another one on AWS, both running the same application. 我想在GCE上创建一个kubernetes集群,在AWS上创建另一个,都运行相同的应用程序。
What would be the best way to load balance across them? 跨它们进行负载平衡的最佳方法是什么?
You can deploy the same application on both platforms, expose it via an L3 / L7 service and then create a DNS entry that includes the public IP for each cluster. 您可以在两个平台上部署相同的应用程序,通过L3 / L7服务将其公开,然后创建一个DNS条目,其中包括每个群集的公共IP。
If you want more than just round-robin load balancing, you can use a service like Route 53 to do latency or geo based routing and also add DNS health checks. 如果您不仅需要循环负载平衡,还可以使用Route 53之类的服务来进行延迟或基于地理位置的路由,还可以添加DNS运行状况检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.