Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望Higress控制台路由页面支持配置一个ingress对应多个路由 #1271

Open
jeffaryhe opened this issue Sep 2, 2024 · 6 comments

Comments

@jeffaryhe
Copy link

6d790505ba40d84dd325bc878f348f11

1、能否跟ingress-nginx一样,单条域名在设置多个路由规则转发到不同的后端服务?现在web里面只能配置一个。在k8s里面就会产生2个文件,看起来很不舒服。
2、同时如果配置了相同的host,2个路由时,在删除其中一个的时候,会干掉2个路由规则。你们可以测试这应该是bug。

@CH3CHO
Copy link
Collaborator

CH3CHO commented Sep 2, 2024

  1. 目前这里管理的是路由,也就是“域名+匹配规则”的组合,所以你的场景下,你得配两次,生成两个 Ingress
  2. 这个我试了一下并没有重现。请提供你完整的重现步骤。

@johnlanni johnlanni changed the title web路由页面也改优化一下, 单个域名,多个路由规则及多个后端绑定关系,目前只能操作一个路由! 希望Higress控制路由页面支持配置一个ingress对应多个路由 Sep 3, 2024
@johnlanni johnlanni changed the title 希望Higress控制路由页面支持配置一个ingress对应多个路由 希望Higress控制台路由页面支持配置一个ingress对应多个路由 Sep 3, 2024
@johnlanni
Copy link
Collaborator

web里配置一个,k8s里不会产生2个文件,这里的路由名称就对应 higresss-system 下的 ingress 资源名称。一个路由对应一个 ingress。控制台上删除路由的时候,也只会删除 higress-system 下的同名 ingress,所以不会出现你所说的问题。

另外,一个路由对应一个ingress,这是我们推荐的最佳实践。目前插件支持 ingress 粒度生效,作用到路由就很灵活。

@jeffaryhe
Copy link
Author

jeffaryhe commented Sep 3, 2024 via email

@johnlanni
Copy link
Collaborator

higress 支持只监听特定 namespace 下的 ingress,或者监听特定 ingress class 的 ingress,都是可以配置的,可以参考这个文档

备份基于 ingress,无论一个 ingress 还是多个 ingress 都是可以导出成一个 yaml ,进行备份复刻的。

@jeffaryhe
Copy link
Author

jeffaryhe commented Sep 5, 2024 via email

@CH3CHO
Copy link
Collaborator

CH3CHO commented Sep 6, 2024

可能我的描述有问题,我是想了解,域名与路由规则下面的策略是如何进行备份?例如我怕丢失启用了那些插件以及规则定义。

备份 higress-system 下面的所有资源即可,包括但可能不限于 ConfigMap、Secret、Ingress、WasmPlugin 等。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants