我可以返回多个Ingress类'使用一个入口控制器

发布于 2025-01-28 03:29:24 字数 290 浏览 4 评论 0原文

希望这里有人能有所帮助。 我有一个用例,在该用例中,我正在公开具有内部和外部LB的NGINX入口控制器。内部LB用于位于K8之外的事物,但在同一网络中可以通过进入K8中的事物进行交谈,同时仍利用我们的NGINX配置。

挑战:

我希望能够限制我们仅向内部系统暴露的端点,以便无法通过外部LB访问它们(对于某人来说,使用正确的主机标头击中外部LB非常容易并且仍然访问其背后的应用程序)。

有人知道做这件事的任何方法吗?这不必完全站立nginx部署。 IE,希望能够定义一个入口类,该类别将与内部LB一起使用,而不是外部LB使用。

Hoping someone here can help.
I have a use case, where I am exposing an NGINX ingress controller with both internal and external LBs. The internal LB is used for things that sit outside of K8S, but within the same network to talk via ingress to things inside K8S, whilst still leveraging our NGINX configurations.

The challenge :

I want to be able to restrict endpoints which we are exposing only to internal systems, so that they can not be accessed via the external LBs (it would be pretty easy for someone to hit the external LB with the correct host headers otherwise and still access the applications behind them).

Does anyone know of any way to do this, which does not involve having to stand up a duplicate NGINX deployment entirely. IE, was hoping to be able to have an ingress class defined which would use exclusively the service with the internal LB rather than the external one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文