Skip to content

Karpenter is continually churning pods when making consolidation decisions #1851

@bparamjeet

Description

@bparamjeet

Description

Observed Behavior:
Karpenter is recreating the same type of node over a period of time and deleting it in parallel when replicas are increased.

Expected Behavior:
Karpenter should not consolidate often when replicas are increased and new nodes are created , deleted over a period of time marking the pods to be shifted to new nodes.

Reproduction Steps (Please include YAML):

  • Create multiple nodepools with same weights and each for an AZ.
  • Create a deployment with 1 replica without any nodeselectors.
  • Increase the replica count to 10
  • Karpenter will create multiple nodeclaims and the pods will be re-shuffled over period of time.

Versions:

  • Karpenter Version: 1.0.5
  • Kubernetes Version (kubectl version): v1.31
Screenshot 2024-12-10 at 10 48 11 AM Screenshot 2024-12-10 at 10 46 43 AM Screenshot 2024-12-10 at 10 46 50 AM

Attached logs :
karpenter-dec07.log

Questions :

  1. What could be the reason for a node repeatedly entering a recreating loop, even though there hasn’t been any scale-up or scale-down activity in the cluster? Specific Time: 16:15PM - 16:45PM , issue can be found in the attached logs.
  2. What is the purpose of including deleting pods in the “found provisionable pod” category, especially those currently on a terminating node?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.performanceIssues relating to performance (memory usage, cpu usage, timing)priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions