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

实现路由API配置到Ingress简单模型的转换配置,实现增删改查API #13

Closed
johnlanni opened this issue Jan 14, 2023 · 7 comments

Comments

@johnlanni
Copy link
Contributor

ingress 简单模型对应的api字段:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: tls-example-ingress
spec:
  tls:
  - hosts:
      - https-example.foo.com
    secretName: testsecret-tls
  rules:
  - host: https-example.foo.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: service1
            port:
              number: 80

namespace 默认限定 higress-system

  • 路由名称->ingress name
  • 域名-> tls 中的 hosts 字段以及 rules 中的host 字段
  • 路径-> path 和 pathType,注意正则需要搭配 annotation
  • 目标服务->backend,注意nacos来源需要搭配annotation
@johnlanni johnlanni changed the title 实现路由API配置到Ingress简单模型的转换配置 实现路由API配置到Ingress简单模型的转换配置,实现增删改查API Jan 14, 2023
@uyoaix
Copy link

uyoaix commented Jan 14, 2023

Elvis , do this task

@johnlanni johnlanni removed the help wanted Extra attention is needed label Jan 15, 2023
@CH3CHO
Copy link
Collaborator

CH3CHO commented Jan 26, 2023

我们这里用的是双向转换的方法,即读取的时候从Ingress转换为Route,写入的时候从Route转换为Ingress,Route模型本身不落地,对吗?

@johnlanni
Copy link
Contributor Author

我们这里用的是双向转换的方法,即读取的时候从Ingress转换为Route,写入的时候从Route转换为Ingress,Route模型本身不落地,对吗?

是的

@CH3CHO
Copy link
Collaborator

CH3CHO commented Jan 28, 2023

nacos来源的Ingress能麻烦提供一个Sample吗?

@johnlanni
Copy link
Contributor Author

nacos来源的Ingress能麻烦提供一个Sample吗?

https://github.com/alibaba/higress/blob/main/samples/nacos-discovery/quickstart.yaml

@CH3CHO
Copy link
Collaborator

CH3CHO commented Feb 4, 2023

我们 Console 需要支持 v1beta1 的 Ingress 吗?

@johnlanni
Copy link
Contributor Author

我们 Console 需要支持 v1beta1 的 Ingress 吗?
需要的

@johnlanni johnlanni added this to the 0.1.0 milestone Feb 6, 2023
@CH3CHO CH3CHO closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants