Skip to content

Support custom TopologyKey in Affinity Assistant #3731

@aleixripoll

Description

@aleixripoll

Feature Request

Currently AffinityAssistant hardcodes kubernetes.io/hostname as the Affinity TopologyKey:

TopologyKey: "kubernetes.io/hostname",

This setting results in a "scheduler deadlock" when some of the Task's pods fit in one node but not all of them. To solve this, we'd like to use the availability zone as the topology key instead, but due to the setting being hardcoded we must implement our own Affinity Assistant. Is there a reason not to support a custom TopologyKey?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions