[英]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? 问题:如何在azure中托管一个端点,使我可以随意在azure和aws服务之间重定向Internet流量?
I am hosting two kubernetes clusters - one in Azure and the other in AWS. 我托管了两个kubernetes集群-一个在Azure中,另一个在AWS中。 I want to be able to: 1. redirect the traffic at will to either aws or azure, whilst retaining the public dns endpoint.
我希望能够:1.将流量随意重定向到aws或azure,同时保留公共DNS端点。
2. fail over manually [and pref automatically too] to the aws cluster. 2.手动[并且也自动选择]故障转移到aws群集。 What is the best way to host the endpoint in azure ?
在Azure中托管端点的最佳方法是什么?
Requirements: 要求:
I have looked at Traffic Manager, Load Balancers and Application Gateway. 我看了流量管理器,负载平衡器和应用程序网关。 Not sure which one (if any) of these is best.
不知道其中哪一个最好(如果有)。
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). 流量管理器不会为您工作,因为它是dns服务,因此会进行缓存(如果将dns缓存设置为5秒左右,则这是最好的解决方案)。 application gateway allows you to specify an ip address as an endpoint, load balancers only work when attached to vms inside azure.
应用程序网关允许您将IP地址指定为端点,负载平衡器仅在连接到Azure中的vm时才起作用。 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) Azure前门可能是您的解决方案(就像其他答案提到的一样)
You can have a look into Azure Front Door Service for your usecase. 您可以查看用例的Azure前门服务。
Look into this https://docs.microsoft.com/en-gb/azure/frontdoor/front-door-overview 看看这个https://docs.microsoft.com/en-gb/azure/frontdoor/front-door-overview
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.