-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more explictly about NoDiskConflicts policy and applicable volume types #30817
Conversation
@@ -40,7 +40,7 @@ For each unscheduled Pod, the Kubernetes scheduler tries to find a node across t | |||
|
|||
The purpose of filtering the nodes is to filter out the nodes that do not meet certain requirements of the Pod. For example, if the free resource on a node (measured by the capacity minus the sum of the resource requests of all the Pods that already run on the node) is less than the Pod's required resource, the node should not be considered in the ranking phase so it is filtered out. Currently, there are several "predicates" implementing different filtering policies, including: | |||
|
|||
- `NoDiskConflict`: Evaluate if a pod can fit due to the volumes it requests, and those that are already mounted. | |||
- `NoDiskConflict`: Evaluate if a pod can fit due to the volumes it requests, and those that are already mounted. Currently supported volumes are: AWS EBS, GCE PD, and Ceph RBD. Note, Persistent Volumes are not evaluated, and thus pods that use Persistent Volume Claims are not constrained by this policy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was the other way around - that PVCs were checked? Otherwise the feature wouldn't be very useful to OpenShift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the basic volumes (ebs/gce/rbd) are checked. No PV are checked. The PR is to make the limitation aware.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then shouldn't this be:
Only Persistent Volume Claims for those supported types are checked. Persistent Volumes added directly to pods are not evaluated and are not constrained by this policy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: Huamin Chen <hchen@redhat.com>
588915c
to
33affa8
Compare
GCE e2e build/test passed for commit 33affa8. |
Automatic merge from submit-queue |
Automatic merge from submit-queue more explictly about NoDiskConflicts policy and applicable volume types partially clarify kubernetes#29670 @kubernetes/sig-scheduling
Automatic merge from submit-queue more explictly about NoDiskConflicts policy and applicable volume types partially clarify kubernetes#29670 @kubernetes/sig-scheduling
partially clarify #29670
@kubernetes/sig-scheduling
This change is