Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Proposal: Add Drain Precheck #7

@svenwltr

Description

@svenwltr

We could add some prechecks before draining a node.

An example would be a check whether there are any pending pods in the cluster. This would reduce the damage if some admin is too eager with scaling down the instances. Example scenario:

  • admin needs to replace one ASG with another
  • the new ASG is ready and the old ones are cordoned
  • the admin scales down the old ASG in chunks of 3
  • the new ASG actually is not big enough, therefore scheduling pod from the last chunk might fail
  • node-drainer happily continues draining the remaining nodes

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