by eicnix on 6/5/18, 8:49 PM with 20 comments
by alpb on 6/5/18, 9:49 PM
* GKE clusters currently can be only in 1 region (say, us-central1)
* But you can create multiple clusters around the world, and deploy the same app on them
* Google Cloud provides global anycast IPs for load balancers
* Anycast IPs are routed to the closest PoP/datacenter available to the visitor of your application
* Then, the traffic is routed to the closest GKE cluster (without leaving Google's private worldwide network)
* This way, you serve to the user from the nearest cluster
* If a region goes offline (disaster scenario) or is under high load, the load balancer will start sending traffic to other nearby clusters
I deployed the sample demo app provided at with this at http://35.190.71.87/ (probably won't work in a month or so). Depending on where you're visiting, you'll be routed to the closest datacenter the app is deployed in.
The demo app source code is here: https://github.com/GoogleCloudPlatform/k8s-multicluster-ingr... You can try it out yourself if you have a GCP account.
Disclaimer: I work on GKE at Google.
by yannski on 6/6/18, 6:54 AM
by linsomniac on 6/5/18, 9:49 PM