F5Networks / k8s-bigip-ctlr

Repository for F5 Container Ingress Services for Kubernetes & OpenShift.
Apache License 2.0
364 stars 195 forks source link

[multicluster] Doing A/B on more than two clusters #3493

Open alonsocamaro opened 4 months ago

alonsocamaro commented 4 months ago

Setup Details

CIS Version : 2.17.1
Build: f5networks/k8s-bigip-ctlr:2.17.1

Description

Using the following VS configuration with CIS multicluster with HA and active-active configuration:

pools:
  - path: /shop
    service: route-b-ocp1
    servicePort: 443
    weight: 50
    alternateBackends:
    - service: route-b-ocp2
      weight: 50
    extendedServiceReferences:
    - clusterName: ocp3
      namespace: openshift-ingress
      service: route-b-ocp3
      servicePort: 443
      weight: 50

It is expected that CIS would create 3 pools with equal distribution, instead it creates two pools (one for each pool that is not a service in the extendedServiceReferences) and the endpoints for of the service inside the extendedServiceReferences is added to both pools.

Expected Result

It is expected that 3 pools would be created, one for each service regardless this is in the extendedServiceReferences or not.

Actual Result

alonsocamaro commented 4 months ago

Please consider https://github.com/F5Networks/k8s-bigip-ctlr/issues/3494 when evaluating this bug

trinaths commented 3 months ago

Created [CONTCNTR-4810] for internal tracking.