Skip to content

mecak8s chart: make HA placement and disruption budgets scale-safe #1522

Description

@ChrisJBurns

Problem

The chart calls the default two-replica posture HA-oriented, but topology spreading and affinity default empty, so both replicas may run on one node. The PDB uses minAvailable: 1 for every replica count above one; as the Deployment scales, increasingly large voluntary disruptions are allowed.

Evidence

  • deploy/helm/mecak8s/values.yaml: replicaCount: 2, empty topology spread and affinity.
  • deploy/helm/mecak8s/templates/pdb.yaml: fixed minAvailable: 1.

Proposed direction

Default to soft hostname spreading (ScheduleAnyway) or preferred pod anti-affinity so single-node clusters remain installable. Retain a documented production option for hard hostname/zone spreading. Make the PDB configurable and default scalable deployments to maxUnavailable: 1.

Acceptance criteria

  • Multi-node clusters prefer placing replicas on separate nodes by default.
  • Single-node development clusters remain schedulable.
  • Voluntary disruption cannot remove more than one replica by default.
  • Render tests cover one, two, and greater-than-two replicas.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions