具有应用程序网关的多容器服务结构 [英] Multi Container Service Fabric with Application Gateway

查看:67
本文介绍了具有应用程序网关的多容器服务结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们有一个特定的要求,我们正在将应用程序部署在Azure的Service Fabric容器上.对于我们每个人 客户端,我们正在Service Fabric上创建单独的容器. Service Fabric本身具有面向公众的负载均衡器.现在,每个容器都有单独的端口号,我已经在负载均衡器中打开了该端口,并能够访问该容器的 与
 此https://< Load Balancer IP> ;:容器端口正常运行.为了提供安全性,我们需要使用Load Balancer前面的Application网关.我们的应用程序仅允许来自https端口443的流量,要求如下.

我们想将443流量通过应用程序网关中的基于路径的路由转移到
上的特定容器  服务结构.

所有流量仅应从端口443接收,然后使用基于路径的规则,我们需要将其传输到特定的容器.
 例如将https://1.1.1.1/client1转换为container1 https://1.1.1.1/client2转换为container2

可以请我帮您配置此要求的应用程序.


Hi, We have a specific requirement, We are deploying our application on Service Fabric Container's in Azure. For our each
 client we are creating the separate container on the Service Fabric. Service Fabric itself has the public facing load balancer. Now each container has individual port number, I have opened the port in the Load Balancer and able to access the container's with
 this https://<Load Balancer IP>:Containerport it's working fine. For providing the security we need to use the Application gateway in front of Load Balancer. Our application only allow traffic from https port 443, requirement is below.

we wanted to transfer the 443 traffic with the path base routing in the application gateway to the specific container on
 the service fabric.

all traffic should be only receive from port 443, after that with path base rule we need to transfer it to the specific container.
 eg https://1.1.1.1/client1 to container1 https://1.1.1.1/client2 to container2

Can please help me to configure the application for this requirement.


推荐答案

You can configure path based routing by creating one listener on port 443 which will receive traffic for 1.1.1.1 site and then create a path based rule. For each route you will need to create a backend pool. Once backend pool is created, create a rule which would bind the path based rule to the different backend pool.

例如,/client1/*转到后端池1,该池具有他们要路由到的容器的IP.同样,/client2/* 转到第二个后端池2.

For example, /client1/* goes to backend pool 1 which has the IP of the container to which they want to route. Similarly, /client2/* goes to second backend pool 2.

建议您引用以下文章:

https://docs.microsoft.com/zh-CN /azure/application-gateway/overview

https://docs.microsoft.com/en-us/azure/application-gateway/overview

https://docs .microsoft.com/en-us/azure/application-gateway/application-gateway-url-route-overview

https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-url-route-overview

- -------------------------------------------------- --------------------------------------------------

如果是这样答案很有帮助,请单击标记为答案"或进行投票.要提供有关您的论坛体验的其他反馈,请点击 /span>


这篇关于具有应用程序网关的多容器服务结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆