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

支持 Openshift Route 模型 #76

Open
zhugelianglongming opened this issue Sep 8, 2022 · 2 comments
Open

支持 Openshift Route 模型 #76

zhugelianglongming opened this issue Sep 8, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@zhugelianglongming
Copy link
Member

zhugelianglongming commented Sep 8, 2022

背景

K8s 环境中已通过 Openshift Route 配置部分路由,希望 bfe-ingress-controller 兼容。

配置示例

apiVersion: route.openshift.io/v1
kind: Route
metadate:
  name: app
  namespace: default
spec:
  alternateBackends:
  - kind: Service
    name: app1
    weight: 20
  host: example.com
  path: /
  port:
    targetPort: 8080
  to:
    kind: Service
    name: app
    weight: 80
  wildcardPolicy: None
@zhugelianglongming zhugelianglongming added the enhancement New feature or request label Sep 8, 2022
@ps1976
Copy link
Collaborator

ps1976 commented Jan 14, 2023

@ps1976
Copy link
Collaborator

ps1976 commented Jan 14, 2023

Main diff btw the two models -

#1. TLS config -

  • Ingress reuses k8s secret tls config with proper name
  • Route configures key & cert in its spec with termination type

#2. Path -

  • An ingress spec has a path array with PathTypes(Exact, Prefix, ImplementationSpecific)
  • One route spec has just one path entry without PathType (Somehow reasonable that one route entry only contains one path)

#3. Backend -

  • An ingress can have a default backend and specify a backend in an ingress rule
  • A route can set a To backend and at most 3 alternative backends for one path with weights

#4. Balance weight -

  • BFE ingress uses annotation to set the balance weight - Weight values are assigned to sub-services that constructs a service which is specified in backend service name in a rule
  • A route assigns weight for different backend (To + alternative) in the spec, and the weight ranges from 0 to 256 with default 100

#5. Annotations -

  • Customize new annotations for openshift route in accordance with BFE annotation definitions (cookie, header, redirct, etc)

#6. IngressClass -

  • Should openshift route have such annotation?

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

No branches or pull requests

2 participants