How do I achieve cross-region load balancing on Google Container Engine?
I will have one Kubernetes cluster per region in several regions and I need to route traffic from a single domain name to the geographically closest cluster.
Some options I've investigated:
- Kubernetes LoadBalancers seem to be restricted to one cluster.
- I'm not sure how you get Kubernetes Ingress to talk to different clusters. (It sounds like this object is backed by Compute Engine HTTP load balancers though.)
- Compute Engine HTTP Load Balancers talking to exposed clusters sounds right, but the link I referenced seems to have some old terms like
gcloud beta
. - Instead of all this, can I actually get a Kubernetes cluster to span different regions?
Now if I want to route different URL paths to different containers within a pod, where do I do that? If it's at the Ingress or HTTP Load Balancer level, then I don't have enough granularity to address particular containers. Does that mean I would have to use a different pod + service for each different URL path?