fluxcd / flagger

Progressive delivery Kubernetes operator (Canary, A/B Testing and Blue/Green deployments)
https://docs.flagger.app
Apache License 2.0
4.91k stars 733 forks source link

Support virtualservice and destinationrule settings to be configurable by name #1484

Open S-mishina opened 1 year ago

S-mishina commented 1 year ago

Describe the feature

Currently, when using a flagger-generated destination rule to set the circuit breaker, only the circuit breaker value for the entire service can be set.

Proposed solution

We would like to be able to use the virtual service and destination rules generated by Flagger to determine the line blocking thresholds for each client. Specifically, we would like to be able to set the following.

  subsets:
  - name: hogehoge
    trafficPolicy:
      outlierDetection:
        consecutive5xxErrors: 360
        interval: 3m
        baseEjectionTime: 30s
        maxEjectionPercent: 100
  - name: hogehoge1

Any alternatives you've considered?

This is not an alternative, but I would be happy to discuss the following matter.

S-mishina commented 1 year ago

To put it plainly, we want to manage virtualservice and destination rule by name.

I'd be glad to know if there is any other way other than the suggested method.

S-mishina commented 1 year ago

@aryan9600 Thanks for reviewing PR the other day. Can I have a look at this issue?

-- In addition to what I wrote in the issue, I feel that if you can't set virtual service and destination rules for each NAME, you can't set timeouts for each PATH, etc.

I hope that you will take a look at this issue and we can solve the problem together!