将托管在Azure Kubernetes容器中托管的Web应用程序曝光到组织内部和外部世界

发布于 2025-02-13 23:34:40 字数 225 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

峩卟喜欢 2025-02-20 23:34:40

我要说的是,需要将入学规则配置为前缀而不是精确匹配。这将确保所有

  1. 要求/some/endpoint/
  2. 以及/some/endpoint/*

的所有请求都将由同一后端服务提供。

因此,对于所有资源,端点将正常运行。绝对可以托管带有入口的Web应用程序:)

I would say the ingress rules need to be configured of type prefix instead of exact match. This will ensure that all the

  1. Requests for /some/endpoint/
  2. And for /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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文