Search code examples
azureazure-application-gatewayazure-traffic-managerazure-load-balancerazure-front-door

How to redirect traffic hosted on an azure endpoint (DNS/static IP) to different external IP address


Question: How do I host an endpoint in azure which allows me to redirect internet traffic at will between azure and aws services?

I am hosting two kubernetes clusters - one in Azure and the other in AWS. I want to be able to: 1. redirect the traffic at will to either aws or azure, whilst retaining the public dns endpoint.
2. fail over manually [and pref automatically too] to the aws cluster. What is the best way to host the endpoint in azure?

Requirements:

  • The traffic needs to be redirected immediately - no caching issues and stale loads!
  • Ability to configure failover - i.e. specify that Azure is hot and AWS is the failover service - the traffic should be automatically redirected as soon as Azure goes down.

I have looked at Traffic Manager, Load Balancers and Application Gateway. Not sure which one (if any) of these is best.


Solution

  • traffic manager wont work for you, since its a dns service, so caching will happen (admittedly its the best solution if you set dns cache to 5 seconds or something). application gateway allows you to specify an ip address as an endpoint, load balancers only work when attached to vms inside azure. But application gateways dont allow to failover at will. you would need to block the probe to failover.

    Azure Front Door might be the solution for you (like the other answer mentions)