Skip to content

implement PreEnqueue not to start scheduling cycles for pods without necessary PVC created #129698

@sanposhiho

Description

@sanposhiho

ref: a question raised at #123227 (comment)

So, currently if PVCs for the pod are not-found, VolumeBinding PreFilter returns unschedulable.
But, it means that we have to consume 1 scheduling cycle to notice the lack of PVCs.

Technically, we can move this part to PreEnqueue so that the pods don't enter the scheduling cycles in the first place if PVCs aren't ready yet. DRA plugin does the similar stuff at PreEnqueue actually (ref).

(I'm wondering why we haven't done this until now though. Is it just that no one has noticed that we can do this, or is there any specific reasons blocking this improvement? (e.g., perf concern?) Anyways..)

/sig scheduling
/kind feature
/cc @kubernetes/sig-scheduling-misc @carlory

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions