Skip to content

kube api server getting rate limited due to karpenter not respecting the do not evict annotations #7645

Open
@doverk96

Description

Description

Observed Behavior:
I have a nodepool which is set to expireAfter 720h, consolidate : whenEmpty. Still, I see that karpenter is giving error that it can not consolidate the node because PDB prevents it. Then, i went and put annotation 'karpenter.sh/do-not-disrupt: "true"' on all pods which are related to PDB. Still, i can see in events and karpenter logs that it is giving message cannot consolidate.
Expected Behavior:
Expected behaviour is if consolidate : whenEmpty, then it should just ignore it, instead of trying to evict the running workloads(other than daemonset pods) from the node. In case of annotation, again it should not try to disrupt, should not go for consolidation. By the definition, nodes with 'karpenter.sh/do-not-disrupt: "true"' annotations are not to be considered for consolidation.
Reproduction Steps (Please include YAML):
Just place a 'karpenter.sh/do-not-disrupt: "true"' annotation on a pod of any nodepool and check the events and logs of karpenter.
Versions:

  • Chart Version: 1.1.0
  • Kubernetes Version (kubectl version): 1.29 (EKS)
  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage/needs-informationMarks that the issue still needs more information to properly triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions