Skip to content

Raft drops the hard pod spread for a preferred anti-affinity #36

Description

@siryur

templates/deployment.yaml picks one of two scheduling blocks:

  • multi-replica Deployment: topologySpreadConstraints with whenUnsatisfiable: DoNotSchedule
  • raft.enabled: only a preferredDuringSchedulingIgnoredDuringExecution podAntiAffinity

So enabling raft loosens placement at the point it should tighten. A Deployment
stayed up losing 1 of 2 replicas; a raft quorum needs 2 of 3. All three members
can land on the same node, each with its PVC, and one node going away takes the
control plane with it.

There's no affinity value to override it, so it can't be fixed from values.

Could the raft path emit the hard constraint as well, or expose affinity?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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