generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
The SandboxClaim controller currently adopts the oldest pod from the warm pool regardless of its state. If the oldest pod is unhealthy (e.g., CrashLoopBackOff or Pending), the claim adopts it and stalls, defeating the purpose of a warm pool.
In the adoption logic, we should prioritize pod health:
- Sort pods primarily by Readiness (Running & Ready condition).
- Use CreationTimestamp (oldest first) only as a tie-breaker.
We could consider supporting different types of adoption strategy in claim, such as AdoptionStrategy: Any | PreferReady | StrictReady.
/kind feature
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.