问题描述
能否在欧盟和美国运行一个Google Container Engine集群,并在它们运行在此Google Container Engine集群上的应用之间进行负载平衡?
Is it possible to run a Google Container Engine Cluster in EU and one in the US, and load balancing between the apps they running on this Google Container Engine Clusters?
推荐答案
Google Cloud HTTP(S)负载平衡,TCP代理和SSL代理支持跨区域负载平衡.您可以通过创建后端服务将其指向多个不同的GKE群集,该后端服务将流量转发到节点池的实例组,并在NodePort上为您的服务发送流量.
Google Cloud HTTP(S) Load Balancing, TCP Proxy and SSL Proxy support cross-region load balancing. You can point it at multiple different GKE clusters by creating a backend service that forwards traffic to the instance groups for your node pools, and sends traffic on a NodePort for your service.
但是,最好自动创建LB,就像Kubernetes进行Ingress一样.一种实现方法是使用集群联盟,它支持联邦入口.
However it would be preferable to create the LB automatically, like Kubernetes does for an Ingress. One way to do this is with Cluster Federation, which has support for Federated Ingress.
这篇关于带有云负载均衡器的不同地区的Google Container Engine集群的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!