kubernetes-sigs/aws-load-balancer-controller

Merge ALB rules by the same host

開放

#2,678 建立於 2022年6月6日

 (8 則留言) (7 個反應) (0 位負責人)Go (1,644 個分叉)auto 404
good first issuekind/featurelifecycle/stale

倉庫指標

星標
 (4,317 顆星)
PR 合併指標
 (平均合併 14天 12小時) (30 天內合併 16 個 PR)

描述

Is your feature request related to a problem? We would like to be able to merge rules in the ingress resource, on the ALB level.

For example, when creating the following -

spec:
  rules:
    - http:
        paths:
          - path: /test1
            pathType: ImplementationSpecific
            backend:
              service:
                name: service_name
                port:
                  number: 80
          - path: /test2
            pathType: ImplementationSpecific
            backend:
              service:
                name: service_name
                port:
                  number: 80
    - http:
        paths:
          - path: /*
            pathType: ImplementationSpecific
            backend:
              service:
                name: service_name
                port:
                  number: 80

We want the controller to merge the two paths in the first rule, and create one rule in the ALB. We are aware of the conditions annotation, but unfortunately working with it dynamically is very complicated. Is there an easier way?

貢獻者指南