How Can I Route Traffic to Different Kubernetes Clusters Using Gateway API?

0
0
Asked By CuriousCoder99 On

I've set up two Kubernetes clusters with a Gateway API, and they share a common load balancer gateway. I'm trying to figure out how to route traffic so that abc.host.com goes to cluster A while def.host.com goes to cluster B. Additionally, I need users of cluster B to be able to add their own domain names (for example, otherhost.com) that aren't part of host.com, which I own. Our current setup includes a private DNS server that doesn't allow root alias and doesn't support automated DNS routing for clients.

1 Answer

Answered By TechSavvy77 On

You might want to confirm if both clusters need to be under the same domain. If they're separate, consider using a load balancer in front of them. This way, you can manage the traffic distribution easily. Alternatively, you could use a cloud service like Cloudflare or Fastly and configure both clusters as upstream servers.

CuriousCoder99 -

Thanks for the tip! I've updated my question with more details.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.