Skip to content

Add Karpenter integration via temporary PDBs#1052

Open
xiangyuwang-stripe wants to merge 1 commit intohumio:masterfrom
xiangyuwang-stripe:xiangyuwang-stripe-block-karpenter-consolidation
Open

Add Karpenter integration via temporary PDBs#1052
xiangyuwang-stripe wants to merge 1 commit intohumio:masterfrom
xiangyuwang-stripe:xiangyuwang-stripe-block-karpenter-consolidation

Conversation

@xiangyuwang-stripe
Copy link
Copy Markdown

Summary

  • Adds enableKarpenterIntegration feature flag to prevent Karpenter from disrupting Humio pods during upgrades and restarts
  • When enabled, the operator creates a temporary PDB (maxUnavailable: 0) per node pool whenever the cluster is not fully stable, blocking all voluntary pod evictions
  • PDBs are only removed after ensureMismatchedPodsAreDeleted confirms all pools have no diffs and the cluster is Running
  • Feature is opt-in (default: false), existing users are unaffected

Background

The operator updates node pools one at a time, blocking pod creation for non-updating pools via nodePoolAllowsMaintenanceOperations. If Karpenter terminates a node in a healthy pool during another pool's upgrade, the lost pods cannot be recreated until the upgrade completes. This change prevents that by freezing Karpenter consolidation during sensitive operations.

@xiangyuwang-stripe xiangyuwang-stripe marked this pull request as ready for review April 27, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant