简体   繁体   English

删除捕获所有路径中断入口

[英]Removing catch all path breaks ingress

I create a brand new AKS without customization.我在没有定制的情况下创建了一个全新的 AKS。

I apply this simple ingress example: https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-cli我应用这个简单的入口示例: https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-cli

  • path: /(.*) pathType: Prefix backend: service: name: aks-helloworld-one port: number: 80路径:/(.*) 路径类型:前缀后端:服务:名称:aks-helloworld-one 端口:编号:80

This snippet is contained in the example.此代码段包含在示例中。 When I remove it all other paths break as well.当我删除它时,所有其他路径也会中断。

Why is that?这是为什么?

I thought this would be something intriguing about ingress.我认为这将是关于 ingress 的一些有趣的事情。 Turns out that is just how that particular demo application was built.事实证明,这就是特定演示应用程序的构建方式。

This may be off broad interest for everyone running that particular example so I will leave this up here.对于运行该特定示例的每个人来说,这可能会引起广泛的兴趣,因此我将把它留在这里。

essentially the frontend loops back through that endpoint to app_one as a backend and the static ingress is for static content like the picture presented.本质上,前端通过该端点循环回到 app_one 作为后端,而 static 入口用于 static 内容,如图所示。

Nothing magical here - just how the app was built.这里没有什么神奇的——只是应用程序是如何构建的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM