将托管在Azure Kubernetes容器中托管的Web应用程序曝光到组织内部和外部世界
我在Azure Kubernetes服务中将Web应用程序托管为Linux容器。我正在使用Azure应用程序网关入口控制器。我试图使用Azure API网关服务揭示此Web应用程序,但是它无法正常工作。仅首先加载URL,但随后向其他资源的请求即CSS,JS等失败。由于API网关不适合Web应用程序,我可以用来揭示AKS中托管的Web应用程序的其他选项? 我想使用Azure AD在此应用程序上对用户进行身份验证。任何指针都会有所帮助。
I have web application hosted as linux container in Azure Kubernetes Service. I am using Azure Application Gateway Ingress controller. I tried to expose this web application using Azure API Gateway service however it is not working as expected. Only first url get loaded but subsequent requests to other resources i.e. css, js etc fails. Since API Gateway is not meant for web applications what are my other options that I could use to expose this web application hosted in AKS?
I want to use Azure AD to authenticate users on this application. Any pointers would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我要说的是,需要将入学规则配置为
前缀
而不是精确匹配
。这将确保所有/some/endpoint/
/some/endpoint/*
的所有请求都将由同一后端服务提供。
因此,对于所有资源,端点将正常运行。绝对可以托管带有入口的Web应用程序:)
I would say the ingress rules need to be configured of type
prefix
instead ofexact match
. This will ensure that all the/some/endpoint/
/some/endpoint/*
will both be served by the same backend service.
Therefore, for all resources, the endpoint would function correctly. It is definitely possible to host a web application with an Ingress :)