Skip to content

[Feature] Pin 5-Spot controller to control-plane nodes to prevent deletion deadlock #61

Description

@atgreen

Description of Problem

When 5-Spot manages ephemeral worker nodes, the controller pod can be scheduled onto one of those worker nodes. If 5-Spot then tries to delete that worker (e.g., schedule window closes), it deadlocks. The controller cannot complete the deletion because it's running on the node being deleted.

Potential Solutions

Maybe something like this?

        nodeSelector:
          node-role.kubernetes.io/control-plane: ""
        tolerations:
          - key: node-role.kubernetes.io/control-plane
            effect: NoSchedule
          - key: node-role.kubernetes.io/master
            effect: NoSchedule

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions