Skip to content

Request - support topologySpreadConstraintsΒ #226

@JamesHarrison

Description

@JamesHarrison

For users deploying to clusters of mixed compute types (e.g. on-demand vs spot) it is helpful to be able to force applications to skew across particular topology characteristics so not all replicas are wiped out if all spot instances are terminated.

Just like tolerations it should be possible to configure these, e.g.:

topologySpreadConstraints:
   - maxSkew: 1
      topologyKey: "karpenter.sh/capacity-type"
      whenUnsatisfiable: ScheduleAnyway

This should then be used throughout the chart with appropriate labelSelectors inserted as required.

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