Skip to content

Allow 0 primary replica during initialization #1837

@sayap

Description

@sayap

Describe the feature

We are trying to use Flagger to manage multiple deployments of the same service across multiple k8s clusters. As the new k8s clusters may not be well tested yet, ideally we would like to only send a small percentage of traffic to the new deployment.

However, it looks like 8b758fd61 from #107 would set the primary replica to be at least 1 during initialization. So, let's say the old deployment has 3 replicas, then the new deployment will receive 25% of traffic, which can be a bit too high.

Proposed solution

If there is no strong reason why the default primary replica has to be at least 1, maybe we can make this configurable and allow 0 replica when creating the primary deployment.

Any alternatives you've considered?

Currently we have some rather complicated workflow to workaround this initialization behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions