Load Balancing between Two Continents


I have a question regarding a technical issue. We have two independent kubernetes clusters in GCP in EU and USA. The same services are running in both clusters, we have separate databases in EU and USA. Now we want to do something like this, when the https://api.xxx.com url is entered, we want the request to go to the kubernetes cluster there if the user is in the USA, or to the kubernetes cluster in the EU if not. Is it possible to do this with Cloudflare, if possible, which service or services should we use?

Note = We are using Cloudflare as DNS service. There is traefik as ingress in Kubernetes clusters.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.