简体   繁体   English

如何将Azure终结点(DNS /静态IP)上托管的流量重定向到其他外部IP地址

[英]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: 要求:

  • The traffic needs to be redirected immediately - no caching issues and stale loads! 流量需要立即重定向-没有缓存问题和过时的负载!
  • Ability to configure failover - ie specify that Azure is hot and AWS is the failover service - the traffic should be automatically redirected as soon as Azure goes down. 能够配置故障转移(即,指定Azure是热的并且AWS是故障转移服务)的功能,一旦Azure中断,流量应自动重定向。

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.

相关问题 流量管理器 Azure 端点公共 IP 地址 - traffic manager Azure endpoint public IP address Azure应用服务IP地址是否被视为用于DNS的静态IP? - Is an Azure App Service IP Address considered a static IP for DNS purposes? IP 过滤 static web 通过 Z3A580F142203677F1530BC30898ZF6 托管端点 - IP filtering for static web hosted endpoint through Azure blob storage 如何将流量从我的Azure应用服务路由到特定的外部IP地址 - How to route traffic from my Azure App Service to specific external IP address 如何将流量从主机名重定向到 Kubernetes (AKS) 中的自定义 IP 地址? - How to redirect traffic from hostname to a custom IP address in Kubernetes (AKS)? 如何访问在 Azure 上创建的公共 IP 地址的 DNS 名称上的子域? - How to reach subdomains on DNS name of a Public IP Address created on Azure? 如何将 AKS 入口外部 IP 链接到 Azure DNS 区域? - How to link AKS ingress external IP to Azure DNS zone? Azure AKS静态IP地址 - Azure AKS static IP Address Azure Traffic Manager-按用户IP地址路由 - Azure Traffic manager - Route by User IP Address 在Azure中删除IP地址的DNS授权 - Remove DNS authorization for IP address in Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM