fluxcd / flagger

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

Question: Canary replicas #851

Open DerrickMartinez opened 3 years ago

DerrickMartinez commented 3 years ago

Is there a way or a feature planned to support different HPA replicas than the canary?

For example, if we're setting our -primary to a min of 50 replicas, we don't need to spin up 50 for canary analysis. 10 or less would be plenty.

So when a HPA is copied, maybe there is a way to change the min and max replica count?

pandeybk commented 3 years ago

I am looking for this answer also is it possible to define the number of replicas for canary?

stefanprodan commented 3 years ago

You can take full control of HPA outside of Flagger, remove the autoscalerRef from the canary and create two HPA objects, one for the original deployment and one for the primary.